This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |