annotate bin/rainwords @ 4206:ab660bc578b5

<kmc> printf \'#!/bin/sh\\n\\nexec quote fungot\' > bin/qungot && chmod +x bin/qungot
author HackBot
date Thu, 19 Dec 2013 21:07:29 +0000
parents 19cbf3f316f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2418
f2f65a1fa363 <elliott> revert 2416
HackBot
parents: 2417
diff changeset
1 #!/usr/bin/python
3946
19cbf3f316f0 <ais523_> sed --in-place \'s/13,6/6,13/\' bin/rainwords
HackBot
parents: 3914
diff changeset
2 import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,6,13]; print "\n".join((lambda s: " ".join(chr(3) + "%02d"%r[(i+s)%len(r)] + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)