This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cheater-pick() { | |
git cherry-pick $1 && git reset HEAD^ --soft | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var renderIntervalInMillis = 50; | |
var characterWidth = 80; | |
var i = 0; | |
var whitespace = (new Array(characterWidth)).join('\u205f'); | |
setInterval(function() { | |
var position = whitespace.length - (i++ % whitespace.length); | |
document.title = whitespace.substring(0, position) + '🐟' + whitespace.substring(position + 1); | |
}, renderIntervalInMillis); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userTable = { | |
'123': { | |
id: '123', | |
name: 'Elon', | |
usage: 5000 | |
} | |
}; | |
var getUser = function(userId, callback) { | |
callback(null, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var bluebird = require('bluebird'); | |
var userTable = { | |
"123": { | |
id: "123", | |
name: 'Elon', | |
usage: 5000 | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bluebird = require('bluebird'); | |
function expensiveAndCoplicated(user) { | |
bluebird.resolve('awesome'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bluebird = require('bluebird'); | |
var usageTable = {123: 5000}; | |
var getUser = function(userId) { | |
return bluebird.resolve({ | |
id: userId, | |
name: "Elon", | |
usage: usageTable[userId] | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<keymap version="1" name="Vim" parent="Mac OS X 10.5+"> | |
<action id="ClassNameCompletion"> | |
<keyboard-shortcut first-keystroke="shift control alt SPACE" /> | |
</action> | |
<action id="CodeCompletion"> | |
<keyboard-shortcut first-keystroke="control meta SPACE" /> | |
</action> | |
<action id="Debug"> | |
<keyboard-shortcut first-keystroke="control meta D" /> |