Skip to content

Instantly share code, notes, and snippets.

@0atman
Created October 25, 2010 13:51
Show Gist options
  • Save 0atman/644980 to your computer and use it in GitHub Desktop.
Save 0atman/644980 to your computer and use it in GitHub Desktop.
An implimentation of (10+2)*5
#!/usr/bin/env python
#
# sixty.py, a (10+2)x5 implimentation.
# http://www.43folders.com/2005/10/11/procrastination-hack-1025
#
# Copyright 2009 Tristram Oaten
# This program is distributed under the
# terms of the GNU General Public License
# see <http://www.gnu.org/licenses/>
import time, os
# Default values are 10 mins work, 2 mins play.
# Feel free to change to whatever works for you.
work = 600
play = 120
# Command to run each work/play play/work transition
notify_cmd = 'aplay /usr/share/sounds/question.wav -q'
# Main loop
while 1:
os.system("clear")
for i in range (0, work):
print "WORK"
print work - i
time.sleep(1)
os.system("clear")
os.popen(notify_cmd)
for i in range (0, play):
print "PLAY"
print play - i
time.sleep(1)
os.system("clear")
os.popen(notify_cmd)
@0atman
Copy link
Author

0atman commented Oct 25, 2010

Here’s the idea:
“Following on the idea of the procrastination dash and Jeff’s progressive dash, I’ve been experimenting with a squirelly new system to pound through my procrastinated to-do list. Brace yourself, because it is a bit more byzantine than is Merlin 2005’s newly stripped-down habit. It’s called (10+2)*5, and today it will save your ass.”

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