Run a Twisted reactor inside IPython.
- Copy
twist.pyto~/.ipython/twist.py - Copy
tpythonto~/bin/tpython - Make
tpythonexecutable: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.pytpython to ~/bin/tpythontpython executable: chmod +x ~/bin/tpythonYou 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 ) |