Skip to content

Instantly share code, notes, and snippets.

@alilosoft
Created June 6, 2018 18:38
Show Gist options
  • Save alilosoft/0f8ce89f5de3cbc4a20c20768a746597 to your computer and use it in GitHub Desktop.
Save alilosoft/0f8ce89f5de3cbc4a20c20768a746597 to your computer and use it in GitHub Desktop.
import webbrowser
import time
times = 5
print "Start working on: " + time.ctime()
while times > 0:
print "It's time for work!"
time.sleep(25 * 60)
print "Now, It's time to take a break!"
webbrowser.open("https://www.youtube.com/watch?v=1g5wM-YSNHo")
time.sleep(5 * 60)
times -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment