Skip to content

Instantly share code, notes, and snippets.

View obie's full-sized avatar
🎧
digital nomad making music

Obie Fernandez obie

🎧
digital nomad making music
View GitHub Profile
@obie
obie / source_maps.rb
Last active December 15, 2015 10:39 — forked from alexspeller/source_maps.rb
patches the generated source map with the otherwise missing filename
if Rails.env.development?
module CoffeeScript
class SourceMapError < StandardError; end;
class << self
def compile script, options
script = script.read if script.respond_to?(:read)
if options.key?(:no_wrap) and !options.key?(:bare)
@obie
obie / gist:25818
Created November 17, 2008 16:39 — forked from patmaddox/gist:25806
When player wins he should be paid 1-1
When player loses, he is not paid
When player has blackjack, he is paid 1.5-1
Scenario: Winning hand with a $50 bet
Given the player has a score of 19
And the dealer has a score of 18
And the player bet $50
When the hand is played
Then the player wins $50