view bin/zalgo @ 3575:add87b992baa

<Roujo> echo \xe3\x83\xbd\xe0\xbc\xbc\xe0\xba\x88\xd9\x84\xcd\x9c\xe0\xba\x88\xe0\xbc\xbd\xef\xbe\x89 > raise_them
author HackBot
date Fri, 30 Aug 2013 13:05:58 +0000
parents 53551d5bf4da
children
line wrap: on
line source

#!/usr/bin/python
import codecs,sys,random
stdin=codecs.getreader("utf-8")(sys.stdin)
stdout=codecs.getwriter("utf-8")(sys.stdout)
x=[unichr(0x300+i) for i in range(0,112)+[393,2887]]
def z(n,c):
 if c in ["\n"]+x:
  n=0
 return u"".join(x[random.randrange(0,len(x))] for i in range(n))
stdout.write(u"".join(c+z(2,c) for c in stdin.read()) + u"\n")