changeset 2336:1b1fc3726793

<oerjan> rm colorize*
author HackBot
date Fri, 01 Mar 2013 03:30:14 +0000
parents 16603a34c6d2
children 2deb4597f9c9
files colorize colorize.1 colorize.2
diffstat 3 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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)
--- 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)