Skip to content

Instantly share code, notes, and snippets.

def read_ints():
i = 0
while True:
s = input('enter number[%i]:' % i)
yield int(s); i+=1
except ValueError:
if s == "": return
else: print "ignoring invalid number"
View tmux-1.8-on-CentOS-6.x.txt
# download latest libevent2 and tmux sources, and extract them somewhere
# (thx bluejedi for tip on latest tmux URL)
# at the time of writing:
# install deps
yum install gcc kernel-devel make ncurses-devel
View source.txt
"The Amazing Interactive Turing Machine" by "J.D. Clemens"
Section 1 - Bibliographic Data
The story headline is "An Interactive Waste of Time".
The story genre is "Other".
The story description is "You have almost reached the end of your shift. All that remains is to clean one final room, the control room for that weird contraption being built by the scientists here. Carrying your usual equipment, you open the door and step into... The Amazing Interactive Turing Machine!"
Release along with source text and a website.
View index.html
<!doctype html>
<html xmlns:svg="">
<script src="" charset="utf-8"></script>
<script src="tetris.js" charset="utf-8"></script>
<div id="tetris"></div>