Skip to content

Instantly share code, notes, and snippets.

Aaron Quint quirkey

Block or report user

Report or block quirkey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@quirkey
quirkey / emoji.m
Created Aug 16, 2012 — forked from javan/emoji.m
Campfire Emoji
View emoji.m
sDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
// People
@":smile:", @"\ue415",
@":blush:", @"\ue056",
@":smiley:", @"\ue057",
@":relaxed:", @"\ue414",
@":smirk:", @"\ue402",
@":heart_eyes:", @"\ue106",
@":kissing_heart:", @"\ue418",
View whitespace
#!/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)
View .ackrc
--type-set=haml=.haml
--type-set=sass=.sass
--ignore-dir=rdoc
View servefiles
#!/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.
View gist:797226
Emoji: {
'sunny': '2600',
'zap': '26a1',
'leaves': '1f343',
'lipstick': '1f483',
'cop': '1f46c',
'wheelchair': '267f',
'fish': '1f413',
'hammer': '1f52c',
@quirkey
quirkey / sinatra.js
Created Dec 13, 2010
the original sketch for sammy.js
View sinatra.js
// example app
(function($) {
get('#/path', function() {
this // == Request object
this.params //query string params as JS object
redirect('/path2'); //redirects
You can’t perform that action at this time.