annotate bin/loudlye @ 7322:48cf67750eb1

<prooftechnique> learn prooftechnique n\xc3\xa9 NihilistDandy He was there some time ago. Maybe he\'ll come back. Maybe he\'s a nihilist, too. (Note from the Editor: He came back, and is a nihilist.)
author HackBot
date Wed, 30 Mar 2016 03:31:31 +0000
parents f76b9b5bd985
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6484
f76b9b5bd985 <oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
HackBot
parents:
diff changeset
1 #!/usr/bin/env python
f76b9b5bd985 <oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
HackBot
parents:
diff changeset
2 import sys, itertools
f76b9b5bd985 <oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
HackBot
parents:
diff changeset
3 inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input()
f76b9b5bd985 <oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
HackBot
parents:
diff changeset
4 cyc = itertools.cycle(["\00304,09","\00309,04"])
f76b9b5bd985 <oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
HackBot
parents:
diff changeset
5 print "".join(cyc.next() + c for c in inp)