Skip to content

Instantly share code, notes, and snippets.

@ryanbriones
Created December 8, 2009 15:57
Show Gist options
  • Save ryanbriones/251748 to your computer and use it in GitHub Desktop.
Save ryanbriones/251748 to your computer and use it in GitHub Desktop.
ahh, my first night in chicago after my iPhone, my only alarm clock, broke. good times.
require 'time'
loop do
if Time.now > Time.parse('06:30')
`/usr/bin/open "/Users/ryanbriones/Music/iTunes/iTunes Music/Daft Punk/Discovery/01 One More Time.mp3"`
break
end
puts "#{Time.now} not #{Time.parse('06:30')}"
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment