Skip to content

Instantly share code, notes, and snippets.

@johnreilly
Created December 10, 2010 03:41
Show Gist options
  • Save johnreilly/735732 to your computer and use it in GitHub Desktop.
Save johnreilly/735732 to your computer and use it in GitHub Desktop.
['net/http', 'json'].each {|lib| require lib}; def payout bet; 13 == JSON.parse(Net::HTTP.get 'roulette.engineyard.com', '/')['winning_number'].to_i ? bet * 35 : 0; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment