http://lifehacker.com/182657/how-to-turn-mac-os-x-dashboard-off
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
curl -L http://install.ohmyz.sh/ | sh
| gist name |
| my sublime snippets for js |
http://lifehacker.com/182657/how-to-turn-mac-os-x-dashboard-off
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
curl -L http://install.ohmyz.sh/ | sh
| <?php | |
| class NotSimpleXMLElement extends SimpleXMLElement | |
| { | |
| const ATTR = 'attr'; | |
| const NAME = 'name'; | |
| const CHILDREN = 'children'; |
| .vertical-align-middle(@child: ~".content") { | |
| &:before { | |
| display: inline-block; | |
| content: ''; | |
| height: 100%; | |
| vertical-align: middle; | |
| margin-right: -0.25em; | |
| } | |
| @{child} { | |
| display: inline-block; |
| <?php | |
| class Paginator implements \IteratorAggregate | |
| { | |
| const TPL_WRAPPER = 'wrapper'; | |
| const TPL_NUM = 'num'; | |
| const TPL_NUM_CURRENT = 'currentNum'; | |
| const TPL_TAG = 'tag'; | |
| const TPL_NEXT = 'next'; | |
| const TPL_PREV = 'prev'; |
| function defer() { | |
| var resolve, reject; | |
| var promise = new Promise(function(realResolve, realReject) { | |
| resolve = realResolve; | |
| reject = realReject; | |
| }); | |
| return { | |
| resolve: resolve, | |
| reject: reject, |
| { | |
| init: function(elevators, floors) { | |
| elevators.forEach(initElevator); | |
| floors.forEach(initFloor); | |
| var topFloor = floors.length - 1; | |
| function initElevator(elevator) { | |
| elevator.on("idle", function() { | |
| }); |
| #!/usr/bin/env awk -f | |
| /success/ { print "\033[92m" $0 "\033[0m"; next; } | |
| /error/ { print "\033[91m" $0 "\033[0m"; next; } | |
| /./ { print $0 } |
| abbr g git | |
| abbr ga 'git add' | |
| abbr gaa 'git add --all' | |
| abbr gb 'git branch' | |
| abbr gbda git\ branch\ --merged\ \|\ command\ grep\ -vE\ \"\^\(\\\*\|\\s\*master\\s\*\\\$\)\"\ \|\ command\ xargs\ -n\ 1\ git\ branch\ -d | |
| abbr gbnm 'git branch --no-merged' | |
| abbr gbr 'git branch --remote' | |
| abbr gc 'git commit -v' | |
| abbr gc! 'git commit -v --amend' | |
| abbr gca 'git commit -v -a' |