Skip to content

Instantly share code, notes, and snippets.

@mariovisic
Created October 14, 2012 05:44
Show Gist options
  • Save mariovisic/3887526 to your computer and use it in GitHub Desktop.
Save mariovisic/3887526 to your computer and use it in GitHub Desktop.
A rake task to display a rails rumble 2012 timer.
# lib/tasks/timer.rake
desc 'Opens a timer showing remaining rails rumble 2012 time'
task :timer => :environment do
seconds_remaining = Time.utc(2012, 10, 15).to_i - Time.zone.now.to_i
`open http://e.ggtimer.com/#{seconds_remaining}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment