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
sDictionary = [[NSDictionary alloc] initWithObjectsAndKeys: | |
// People | |
@":smile:", @"\ue415", | |
@":blush:", @"\ue056", | |
@":smiley:", @"\ue057", | |
@":relaxed:", @"\ue414", | |
@":smirk:", @"\ue402", | |
@":heart_eyes:", @"\ue106", | |
@":kissing_heart:", @"\ue418", |
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
#!/usr/bin/env ruby | |
# script/whitespace | |
# | |
# Strips whitespace from any files modified in git | |
# Also: | |
# - converts tabs to spaces | |
# - ensures a single newline at the end | |
class WhitespaceProcessor | |
def self.process(code) |
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
--type-set=haml=.haml | |
--type-set=sass=.sass | |
--ignore-dir=rdoc |
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
#!/usr/bin/env ruby | |
require 'webrick' | |
include WEBrick | |
dir = Dir::pwd | |
port = (ARGV.first || (12000 + (dir.hash % 1000))).to_i | |
url = "http://#{Socket.gethostname}:#{port}" | |
puts "Opening #{url}" |
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
testing |
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
Emoji: { | |
'sunny': '2600', | |
'zap': '26a1', | |
'leaves': '1f343', | |
'lipstick': '1f483', | |
'cop': '1f46c', | |
'wheelchair': '267f', | |
'fish': '1f413', | |
'hammer': '1f52c', |
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
// example app | |
(function($) { | |
get('#/path', function() { | |
this // == Request object | |
this.params //query string params as JS object | |
redirect('/path2'); //redirects | |