annotate bin/loudly @ 7946:8ecffca9813d

<moon__> mkx bin/hfs//erro \'You have discovered an eerie cavern. The air aboe the dark stone floor is alive ith vortices of purple light and dark, boiling clouds. Seemingly bottemless pits mark the surface. "$1" stand below\'
author HackBot
date Sat, 07 May 2016 18:36:18 +0000
parents 6ca43f5f4d7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5930
12d549570b87 <dipperswett> echo -e \'#!/usr/bin/env python\\nimport itertools\\ncyc = itertools.cycle(["\\00304,09","\\00309,04"])\\nprint "".join(cyc.next() + c for c in raw_input())\' > bin/loudly
HackBot
parents:
diff changeset
1 #!/usr/bin/env python
6501
6ca43f5f4d7d <Melvar> ` sed -i -e \'s/inp[)]$/unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())/\' -e \'2s/$/, locale/\' bin/loudly
HackBot
parents: 6500
diff changeset
2 import sys, itertools, locale, locale
5948
70055e51bdef <tswett> sed -i \'s/sys.stdin.read(3) or sys.argv\\[1\\]/len(sys.argv) >= 2 and sys.argv[1] or raw_input()/\' bin/loudly
HackBot
parents: 5947
diff changeset
3 inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input()
6488
5f592a885f04 <oerjan> revert 6483
HackBot
parents: 6487
diff changeset
4 cyc = itertools.cycle(["\00304,09","\00309,04"])
6501
6ca43f5f4d7d <Melvar> ` sed -i -e \'s/inp[)]$/unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())/\' -e \'2s/$/, locale/\' bin/loudly
HackBot
parents: 6500
diff changeset
5 print "".join(cyc.next() + c for c in unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())