This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Setup some variables needed for bootstrapping the environment | |
ROOT=/home/vrde/projectz/myproject | |
REPOS=${ROOT}/repos | |
export PYTHONPATH=${REPOS} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pynotify | |
from time import sleep | |
def mins_to_secs(ms): | |
return map(lambda x: x * 60, ms) | |
class Pymodoro(object): | |
POMODORO_TIME = 25 * 60 | |
POMODORO_CHECKPOINTS = mins_to_secs([25, 15, 10, 5, 3, 1]) + range(10) |
NewerOlder