Skip to content

Instantly share code, notes, and snippets.

@timruffles
Created August 26, 2011 14:15
Show Gist options
  • Save timruffles/1173479 to your computer and use it in GitHub Desktop.
Save timruffles/1173479 to your computer and use it in GitHub Desktop.
Quick stats
rgs =rgs.select {|rg| rg.scheduled_at > Date.parse("2011/08/15") }
ratios = rgs.map {|rg|
first_half, second_half = rg.entries.select {|e|e.big_game.game_type == "short"}
.partition{|e| /^(\d)/=~e.big_game.start_point; $1.to_i == 1 }
second_half.length / first_half.length.to_f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment