Skip to content

Instantly share code, notes, and snippets.

View dcarral's full-sized avatar

Daniel Carral dcarral

View GitHub Profile
@dcarral
dcarral / timer.rb
Last active November 17, 2017 20:16 — forked from coreyhaines/timer.rb
Timer for coderetreat session
#!/usr/bin/env ruby
# Uso: ruby timer.rb "mensaje anunciando el final del ciclo"
# o alternativamente: chmod +x timer.rb and ./timer.rb
# + info en http://archive.coderetreat.org/profiles/blogs/new-session-idea-baby-steps
message = ARGV[0] || "Time over"
minutes = 2
seconds = minutes * 60
while(true)