Skip to content

Instantly share code, notes, and snippets.

View jamiehodge's full-sized avatar

Jamie Hodge jamiehodge

  • Zendesk
  • Copenhagen, Denmark
View GitHub Profile
require 'bundler/setup'
require 'roar/representer/json'
require 'roar/representer/feature/hypermedia'
require 'webmachine'
class Product
include Roar::Representer::JSON
include Roar::Representer::Feature::Hypermedia
property :name
require 'formula'
class Ffmpeg < Formula
homepage 'http://ffmpeg.org/'
url 'http://ffmpeg.org/releases/ffmpeg-1.0.tar.bz2'
sha1 'bf1f917c4fa26cf225616f2063e60c33cac546be'
head 'git://github.com/jamiehodge/FFmpeg.git'
option "without-x264", "Disable H264 encoder"
require 'sinatra/base'
module Sinatra
module Exchange
RESPONSE = Struct.new(:status, :headers, :body)
def get_local(path, params={})
r = env['operator'].call(
env.merge(
'SCRIPT_NAME' => '',