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
{ | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"latedef": "nofunc", | |
"noarg": true, | |
"undef": true, | |
"boss": true, | |
"devel": true, | |
"node": true |
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; |
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() { | |
}); |
require(\jade)filters.coco = (str)-> | |
str = str.replace /\\n/g, '\n' | |
js = require(\coco)compile(str)replace(/\n/g, '\\n') | |
"<script type='text/javascript'>#js</script>" |
{spawn} = require \child_process | |
SHELL = if(\win32 == process.platform) then "cmd /c " else "sh -c " | |
output = (error, stdout, stderr)-> | |
if (error) | |
console.error stderr.trim! | |
else | |
console.log stdout.trim! | |
void |