annotate bin/rainwords @ 2385:ef22efd1fef0

<Gregor> learn Coulor is the correct spelling.
author HackBot
date Wed, 06 Mar 2013 19:03:00 +0000
parents 8fc272a3ee48
children be90d778a82d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2294
70ede24e4f7c <Jafet> (echo "#!/usr/bin/python"; echo "import random; w=raw_input().split(\' \'); r=[4,7,8,9,2,13,6]; s=random.randrange(0, len(r)); print \' \'.join(chr(3) + str(r[(i+s)%len(r)]) + w[i] for i in range(len(w)))") > bin/rainwords
HackBot
parents: 2214
diff changeset
1 #!/usr/bin/python
2368
8fc272a3ee48 <Jafet> (echo \'#!/usr/bin/python\'; echo \'import random; w=[l.split() for l in open("/dev/stdin").read().split("\\n")]; r=[4,7,8,9,2,13,6]; print "\\n".join((lambda s: " ".join(chr(3) + str(r[(i+s)%len(r)]) + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)\') >$(which rainwords)
HackBot
parents: 2367
diff changeset
2 import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,13,6]; print "\n".join((lambda s: " ".join(chr(3) + str(r[(i+s)%len(r)]) + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)