This file contains 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
// PEOPLE | |
\ud83d\ude00 | |
\ud83d\ude2c | |
\ud83d\ude01 | |
\ud83d\ude02 | |
\ud83d\ude03 | |
\ud83d\ude04 | |
\ud83d\ude05 | |
\ud83d\ude06 |
This file contains 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
// PEOPLE | |
\U0001F600 | |
\U0001F62C | |
\U0001F601 | |
\U0001F602 | |
\U0001F603 | |
\U0001F604 | |
\U0001F605 | |
\U0001F606 |
This file contains 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
// PEOPLE | |
😀 | |
😬 | |
😁 | |
😂 | |
😃 | |
😄 | |
😅 | |
😆 |
This file contains 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
User.select(:name,:email).group(:name,:email).having("count(*) > 1").count |
This file contains 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
git push origin (see push.default setting) | |
git push origin master (git push origin master:master) | |
git push staging new-feature:master (push new-feature branch to master on remote) | |
git push origin :old-branch (push nothing to old-branch, delete) |
This file contains 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
class Animation | |
def initialize(duration, animations, completion=nil, delay=0, additionalOptions=nil) | |
if duration + delay == 0 | |
animations.call | |
completion.call if completion | |
return | |
end | |
options = UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionCurveEaseOut |
This file contains 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
Show hidden characters
# Fixes key command originally mapped to "html_to_jade_from_selection" | |
# ~/Library/Application Support/Sublime Text 2/Packages/Sublime-JS-to-CoffeeScript/Default (OSX).sublime-keymap | |
[ | |
{ "keys": ["shift+alt+s"], "command": "js_to_cs_from_selection"} | |
] |
This file contains 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
// Returns a function, that, when invoked, will only be triggered at most once | |
// during a given window of time. | |
var throttle = function(func, wait) { | |
var context, args, timeout, throttling, more, result; | |
var whenDone = _.debounce(function(){ more = throttling = false; }, wait); | |
return function() { | |
context = this; args = arguments; | |
var later = function() { | |
timeout = null; | |
if (more) func.apply(context, args); |
This file contains 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
{Module} = require 'coffeescript-module' | |
class Foo extends Module | |
log: -> console.log 'hi!' | |
class Bar extends Module | |
@delegate 'log', Foo | |
@aliasFunction 'b', 'a' | |
@aliasProperty 'd', 'c' |
This file contains 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
function openIOSApp() { | |
window.location = "my-app-scheme://"; | |
setTimeout(function() { | |
window.location = "itms://itunes.apple.com/us/app/my-app-name/my-app-id"; | |
}, 0); | |
} |
NewerOlder