Skip to content

Instantly share code, notes, and snippets.

View chrisb's full-sized avatar

Chris Bielinski chrisb

View GitHub Profile
require 'rubygems'
require 'active_support/all'
class MyEngine < Object
class Configuration
include ActiveSupport::Configurable
def self.method_missing(meth, *args)
self.config.send meth, *args
end
end
all_hypos = [
[ "have perpetual cheese-breath", "sweat chocolate" ],
[ "be forced to eat blood for one year", "eat bugs for the rest of your life" ],
[ "always smell of poop", "look like a reptile" ]
]
@chrisb
chrisb / fizzbuzz.rb
Last active August 29, 2015 13:56
FizzBuzz
(1..100).each { |i|s='';s+='Fizz'if i%3==0;s+='Buzz'if i%5==0;puts s==''?i:s }
@chrisb
chrisb / gist:4d6a09c6cc1ca2e1b14e
Last active November 25, 2022 04:15
Homebrew, Ruby, and Rails on OS X 10.10

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at: https://developer.apple.com

2. Install the Command Line Tools (CLT)

class MyController < ApplicationController
helper_method :do_something
# ...
protected
def do_something
# ...
end

Keybase proof

I hereby claim:

To claim this, I am signing this object: