Skip to content

Instantly share code, notes, and snippets.

View ottbot's full-sized avatar

Robert Crim ottbot

View GitHub Profile
@ottbot
ottbot / .gitignore
Created January 29, 2013 11:33 — forked from karmi/.gitignore
.DS_Store
Gemfile.lock
*.pem
node.json
tmp/*
!tmp/.gitignore
@ottbot
ottbot / install_homebrew.rb
Created March 1, 2012 10:16 — forked from mxcl/install_homebrew.markdown
Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/FundingCircle/homebrew/tarball/master anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end
class Staff < Sequel::Model(:staff)
require 'sequel/extensions/pagination'
def box_times
if box
box.split(';#')
else
[]
end