Skip to content

Instantly share code, notes, and snippets.

View kpolitowicz's full-sized avatar

Kamil Politowicz kpolitowicz

  • Montreal, Canada
View GitHub Profile
Game spec
1. Multiplayer “guess the number game”
1. The game has rounds - after each round the winning player is awarded 1 point, the rest of players - no points
1. The game has many rooms
1. 1-6 players can join the game room. Players are assigned seat numbers from 1-6 (randomly).
1. Player can join a room any time, but if they join during a round, they will have to wait until the next round starts
1. Player can join multiple rooms
1. Players can leave a room at any time. If this happens during a round, their seat is emptied. If this happens during their turn, the turn goes to the next player after timeout.
1. The first game round starts at seat #1
pbpaste | ruby -e 'failed = $stdin.read.split(/\n+/).map{|s| s[/features.*?:\d+/]}.compact ; exit if failed.empty? ; cmd = "CUCUMBER_FORMAT=pretty bundle exec cucumber -r features/ #{failed.join(" ")}" ; $stderr.puts cmd ; puts cmd' | /bin/sh
@kpolitowicz
kpolitowicz / gist:1001053
Created May 31, 2011 18:54
Speeding up Rails startup time - 1.9.2-p180
curl https://gist.github.com/raw/999435/fc2718ac3f488ab2341b65dc2ae5c123f8859bff/fast-require-ruby-19.2-p180 > /tmp/require-performance-fix-1.9.2.patch
rvm install 1.9.2-p180 --patch /tmp/require-performance-fix-1.9.2.patch