Skip to content

Instantly share code, notes, and snippets.

@quirkey
quirkey / emoji.m
Created August 16, 2012 15:48 — forked from javan/emoji.m
Campfire Emoji
sDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
// People
@":smile:", @"\ue415",
@":blush:", @"\ue056",
@":smiley:", @"\ue057",
@":relaxed:", @"\ue414",
@":smirk:", @"\ue402",
@":heart_eyes:", @"\ue106",
@":kissing_heart:", @"\ue418",
#!/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)
--type-set=haml=.haml
--type-set=sass=.sass
--ignore-dir=rdoc
#!/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}"
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
testing
Emoji: {
'sunny': '2600',
'zap': '26a1',
'leaves': '1f343',
'lipstick': '1f483',
'cop': '1f46c',
'wheelchair': '267f',
'fish': '1f413',
'hammer': '1f52c',
@quirkey
quirkey / sinatra.js
Created December 13, 2010 05:19
the original sketch for sammy.js
// example app
(function($) {
get('#/path', function() {
this // == Request object
this.params //query string params as JS object
redirect('/path2'); //redirects