git remote prune origin
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
git gc
| [user] | |
| email = psdcoder@gmail.com | |
| name = Pavel Grinchenko | |
| [alias] | |
| ci = commit | |
| br = branch | |
| co = checkout | |
| df = diff | |
| lg = log -p | |
| st = status |
| (function($){ | |
| $.fn.timer = function(duration, callback) { | |
| var time = duration, | |
| element = this; | |
| element.text(time--); | |
| var interval = setInterval(function() { | |
| if(time < 0){ | |
| clearInterval(interval); |
| var util = require('util'); | |
| function BaseClass(data) { | |
| if (!data) { | |
| throw new TypeError('You must pass "data" in constructor'); | |
| } | |
| console.log('base constructor'); | |
| this.data = data; | |
| } |
| <!DOCTYPE html> | |
| <html ng-app="app"> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-route.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.10/angular-ui-router.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> |
| <!DOCTYPE html> | |
| <html ng-app="app"> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
| </head> | |
| <body ng-controller="ParentCtrl"> | |
| <test-directive> | |
| <p>Some content <br> {{ test }} </p> | |
| </test-directive> | |
| <script> |
A Pen by Pavel Grinchenko on CodePen.
| (function () { | |
| 'use strict'; | |
| angular | |
| .module('$MODULE_NAME$') | |
| .config($COMPONENT$Initialization); | |
| function $COMPONENT$Initialization() { | |
| $END$ | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://static.jsbin.com/js/vendor/traceur.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <link href='http://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'> | |
| <style id="jsbin-css"> | |
| @font-face { | |
| font-family: 'icomoon'; |