Skip to content

Instantly share code, notes, and snippets.

@paulv
paulv / clock.rb
Created April 18, 2012 00:01 — forked from jimweirich/abstract.md
Berlin Clock Kata
# Paul Visscher and Greg Mefford
require 'rspec/given'
require 'time'
class BerlinClock
def self.convert_time(time)
t = Time.parse(time)
clock = ""
@paulv
paulv / urinal_etiquette.rb
Created February 22, 2012 01:00 — forked from st23am/urinal_etiquette.rb
Test Problem
# Paul Visscher and Josh Mills
require 'rspec/given'
class BathroomEtiquette
def initialize(stalls, line)
@stalls = stalls
@line_exists = line
@stalls_hash = make_stalls_hash(stalls)
end