# HG changeset patch # User HackBot # Date 1362108614 0 # Node ID 1b1fc3726793f5831aa62e1601a1913a79392421 # Parent 16603a34c6d21a4e5c2636f76ff7fffa4457f4c4 rm colorize* diff -r 16603a34c6d2 -r 1b1fc3726793 colorize --- a/colorize Fri Mar 01 03:29:05 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#!/usr/bin/env python -import random -import re -w=raw_input() -p=list('x'*len(w)+'C'*int((341-len(w))/3+1)) -random.shuffle(p) -p=re.sub('C+','C',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) diff -r 16603a34c6d2 -r 1b1fc3726793 colorize.1 --- a/colorize.1 Fri Mar 01 03:29:05 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#!/usr/bin/env python -import random -import re -w=raw_input() -p=list('x'*len(w)+'C'*int((341-len(w))/3+1)) -random.shuffle(p) -p=re.sub('C+','C',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) diff -r 16603a34c6d2 -r 1b1fc3726793 colorize.2 --- a/colorize.2 Fri Mar 01 03:29:05 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -#!/usr/bin/env python -import random -import re -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)