Skip to content

Instantly share code, notes, and snippets.

View philm's full-sized avatar

Phil Misiowiec philm

View GitHub Profile
@igrigorik
igrigorik / dropbox.rb
Created January 26, 2012 07:12
stream from http source to client with Goliath
require 'goliath'
require 'json'
require "em-synchrony"
require "em-synchrony/em-http"
class GetImage < Goliath::API
def response(env)
@uri = ('http://dl.dropbox.com/u/3528102/10.iso') #10mb file
EM.next_tick do
@protocool
protocool / caveatPatchor.js
Created February 14, 2011 02:29
Sample caveatPatchor.js file for use in Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.