I hereby claim:
- I am kerryb on github.
- I am kerryb (https://keybase.io/kerryb) on keybase.
- I have a public key whose fingerprint is 8DA4 4B51 5A90 D3AE 07B9 2FD2 5E07 C65F E855 9D1D
To claim this, I am signing this object:
| class RomanNumerals | |
| NUMBERS = { | |
| 1000 => "M", | |
| 900 => "CM", | |
| 500 => "D", | |
| 400 => "CD", | |
| 100 => "C", | |
| 90 => "XC", | |
| 50 => "L", | |
| 40 => "XL", | 
| Verifying that +kerryb is my blockchain ID. No, me neither. https://onename.com/kerryb | 
I hereby claim:
To claim this, I am signing this object:
| # config/application.rb | |
| require File.expand_path('../boot', __FILE__) | |
| # Pick the frameworks you want: | |
| require "active_model/railtie" | |
| # require "active_record/railtie" | |
| require "action_controller/railtie" | |
| require "action_mailer/railtie" | |
| require "action_view/railtie" | 
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [instaweb] | |
| browser = open | |
| [merge] | |
| keepBackup = false | |
| tool = diffmerge | |
| defaultToUpstream = true | 
| # A proc is just a block of code that can be called later: | |
| say_hello = -> { 2 + 2 } | |
| say_hello.call # => 4 | |
| # Procs can take parameters: | |
| double = ->(x) { x * 2 } | 
| Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false] | |
| Eshell V5.9 (abort with ^G) | |
| 1> c(doubler). | |
| {ok,doubler} | |
| 2> c(monitor). | |
| {ok,monitor} | |
| 3> | |
| 3> monitor:start(). | |
| new | 
| $ gem -v | |
| <internal:lib/rubygems/custom_require>:32:in `rescue in require': undefined method `try_activate' for Gem:Module (NoMethodError) | |
| from <internal:lib/rubygems/custom_require>:29:in `require' | |
| from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:32:in `<top (required)>' | |
| from <internal:lib/rubygems/custom_require>:29:in `require' | |
| from <internal:lib/rubygems/custom_require>:29:in `require' | |
| from /usr/local/bin/gem:8:in `<main>' | |
| $ ruby -d -rubygems -e 'puts 42' | 
| data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
| chunk_size = 3 | |
| chunked_averages = (0...data.length).zip(data).group_by{|a| a.first / chunk_size}.values.map{|a| a.map(&:last).reduce(&:+) / a.size} | 
| module DynamicSetup | |
| def dynamic_setup_complete? | |
| @dynamic_setup_complete | |
| end | |
| def method_missing name, *args, &block | |
| if dynamic_setup_complete? | |
| super | |
| else | |
| perform_dynamic_setup |