annotate paste/paste.5749 @ 2364:75c80c422f30
<Jafet> sed -i "2 s#.*#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))))#" $(which rainwords)
author |
HackBot |
date |
Mon, 04 Mar 2013 10:31:19 +0000 |
parents |
f59cb5e61a87 |
children |
|
rev |
line source |
3
|
1 2012-02-01.txt:22:44:40: <oerjan> @tell Taneb er... Dupdog is not supposed to have a program pointer, you always take the first character. Also your eval' is an infinite recursion (hint: unless you are writing generic combinators, a function argument with IO type is usually a mistake.)
|
|
2 2012-02-01.txt:22:58:01: <oerjan> @tell Taneb I can see how "The next character is read" might give you that impression though - but note that (I clearly recall) the initial inspiration for dupdog was the idea of two irc bots reacting to each other's lines as entirely new commands, for which such a remembering of position doesn't make sense.
|
|
3 2012-02-18.txt:14:49:47: <Taneb> ~!~ --infinite loop in dupdog?
|
|
4 2012-02-21.txt:22:42:32: <oerjan> `pastelogs taneb.*dupdog
|