Skip to content

Instantly share code, notes, and snippets.

# http://www.mikeperham.com/2009/01/21/testing-multipart-upload-with-sinatra/
module FiveRuns
module Multipart
class FileUpload
BOUNDARY_ROOT = 'B0UND~F0R~UPL0AD'
attr_reader :file, :params, :rack_opts
def initialize(params={}, rack_opts = {})
@gmcinnes
gmcinnes / rofo.rb
Last active December 19, 2015 21:48
message :body => /^\/(space)?rofo\s*([\d])*\s*$/ do
phrases = ["Subways, subways, subways!",
"Anything else?",
"I saved a billion dollars.",
"I'm running for mayor in 2014!",
"Gridlock creates pollution. It keeps you away from your families.",
"Cyclists are a pain in the ass.",
"The purpose of marathons is to create revenue for charities.",
"I stopped the Gravy Train!"
]