Skip to content

Instantly share code, notes, and snippets.

@bmaca
Created February 23, 2015 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bmaca/0895ed1b9ae6054a1208 to your computer and use it in GitHub Desktop.
Save bmaca/0895ed1b9ae6054a1208 to your computer and use it in GitHub Desktop.
A python program to remind you to take a break every hour on your 8 hour work shift ;)
import time
import webbrowser
total_breaks = 8
break_count = 0
while (break_count < total_breaks):
time.sleep(3600)
webbrowser.open("https://31.media.tumblr.com/288d6e631cd930de65547ef5044fefb8/tumblr_mlksb86paT1qbuvyto1_500.gif")
break_count = break_count + 1
@stantonk
Copy link

stantonk commented Dec 3, 2015

you could also use cron so you dont have to keep this program running all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment