Skip to content

Instantly share code, notes, and snippets.

@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@bryanl
bryanl / campfire-emoji.txt
Created January 27, 2011 16:34
campfire emoji
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@igrigorik
igrigorik / webapp.rb
Created November 13, 2010 21:28
Inspired by @JEG2's talk at Rubyconf... Any ruby object, as a webapp! 'Cause we can. :-)
require 'rubygems'
require 'rack'
class Object
def webapp
class << self
define_method :call do |env|
func, *attrs = env['PATH_INFO'].split('/').reject(&:empty?)
[200, {}, send(func, *attrs)]
end
@tekkub
tekkub / docx_to_markup.rb
Created November 2, 2010 21:39
Word docx files suck!
#!/usr/bin/env ruby
# Converts those nasty xml documents word likes to create into something
# remotely resembling markdown
# Fun side effect: you'll get every revision of the document!
abort "No file name given" unless filename = ARGV.first
remove_tags = [
'\?xml',