view bin/colorize @ 2295:2734c1c779b3

<shachaf> addquote <zzo38> I have no problem if you want to use these drugs and make yourself dead and whatever, but making them legal might ruin the economy.
author HackBot
date Thu, 28 Feb 2013 04:38:57 +0000
parents 2bcf4dad0ca9
children 16603a34c6d2
line wrap: on
line source

#!/bin/sh
python -c "import random; w=raw_input(); p=list('x'*len(w)+'C'*int((341-len(w))/3+1)); random.shuffle(p); i=(c for c in w); print ''.join(i.next() if c=='x' else chr(3)+'%02d' % random.randrange(2,15) for c in ['C']+p)"