Skip to content

Instantly share code, notes, and snippets.

View andersonbarutti's full-sized avatar

Anderson Barutti andersonbarutti

View GitHub Profile
@andersonbarutti
andersonbarutti / styles.less
Created September 16, 2016 01:34 — forked from brandondurham/styles.less
Using Operator Mono in Atom
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.btn {
background: #fecc5f;
background: -webkit-gradient(linear,left top,left bottom,color-stop(#feda71,0),color-stop(#febb4a,1));
background: -webkit-linear-gradient(top, #feda71 0%, #febb4a 100%);
@andersonbarutti
andersonbarutti / .jshintrc
Created June 13, 2015 13:37
My JSHint config
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
<!DOCTYPE html>
<html ng-app="App">
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.box{
position: relative;
width: 100%; /* desired width */
}
index 898b8a7..a2dd010 100644 (file)
--- a/www/public/js/lib/ui/ui-bootstrap.js
+++ b/www/public/js/lib/ui/ui-bootstrap.js
@@ -147,6 +147,8 @@ angular.module('ui.bootstrap.modal', [])
replace: true,\r
templateUrl: 'template/modal/backdrop.html',\r
link: function (scope, element, attrs) {\r
+ scope.windowClass = attrs.windowClass || '';\r
+\r
//trigger CSS transitions\r
@andersonbarutti
andersonbarutti / index.html
Last active August 29, 2015 14:10 — forked from anonymous/index.html
Angular: Using ngChange with $timeout
<!DOCTYPE html>
<html ng-app="App">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-controller="MainCtrl">
<p>Angular 1.3</p>
<input type="text" ng-model="foo" ng-change="update()" ng-model-options="{debounce:3000}"><hr>