Code used for RubyConf 2014 talk.