Skip to content

Instantly share code, notes, and snippets.

@skabber
Created November 30, 2009 18:15
Show Gist options
  • Save skabber/245606 to your computer and use it in GitHub Desktop.
Save skabber/245606 to your computer and use it in GitHub Desktop.
#!/Users/jgraves/environments/python/bin/python
import time
import sys
import Growl
try:
minutes = float(sys.argv[1])
except IndexError:
print "How many minutes?"
sys.exit()
time.sleep(60 * minutes)
notifier = Growl.GrowlNotifier('Tea Timer', ['ntf1'])
notifier.register()
notifier.notify('ntf1', 'Tea Timer', 'It\'s tea time!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment