Run a Twisted reactor inside IPython.
- Copy
twist.py
to~/.ipython/twist.py
- Copy
tpython
to~/bin/tpython
- Make
tpython
executable:chmod +x ~/bin/tpython
You may need to add $HOME/bin
to your path.
Run a Twisted reactor inside IPython.
twist.py
to ~/.ipython/twist.py
tpython
to ~/bin/tpython
tpython
executable: chmod +x ~/bin/tpython
You may need to add $HOME/bin
to your path.
"timekeeperville is a game where you must keep time" | |
# by Leif Ryge, September 2012, WTFPL | |
from time import time | |
from collections import deque | |
results = [] | |
while True: | |
adj = raw_input("Use default settings? [Yn] ") == "n" | |
bpm = int(adj and raw_input("Initial BPM? [120] ") or 120) | |
level = int(adj and raw_input("Initial level? [1] ") or 1 ) | |
limit = int(adj and raw_input("Initial time limit? [15] ") or 15 ) |