Skip to content

Instantly share code, notes, and snippets.

@froderik
Created September 13, 2011 07:58
Show Gist options
  • Save froderik/1213377 to your computer and use it in GitHub Desktop.
Save froderik/1213377 to your computer and use it in GitHub Desktop.
tiny pomodoro clock
#!/usr/bin/ruby
STDOUT.sync = true #makes print flush
now = Time.new
twentyfive = now + 25*60
puts "pomodoro ends #{twentyfive}"
while now < twentyfive do
sleep 1
now = Time.new
print "."
end
puts "\ntime is up"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment