Search found 3 matches

by DragonEgghead
Wed May 02, 2012 11:56 pm
Forum: Challenges Solved
Topic: didactic green
Replies: 12
Views: 1170

I saved it as a bitmap, then ran these two lines of Python, knowing that any invalid text would just show up as whitespace: with open('greenline.bmp') as a: print a.read() Edit: Even better: with open('greenline.bmp') as a: print ''.join(i for i in a.read() if ord(i)>0 and ord(i)<128) That way, it g...
by DragonEgghead
Wed May 02, 2012 8:30 pm
Forum: Challenges Solved
Topic: Didactic RGB
Replies: 17
Views: 1555

Step 1: Get the RGB value from MSPaint (as described by others).
Step 2: Plug in values to my script from before:

Code: Select all

int(''.join("%08d"%int(bin(i)[2:]) for i in [156, 84, 198]),2)
by DragonEgghead
Wed May 02, 2012 8:21 pm
Forum: Challenges Solved
Topic: Didactic Bytes
Replies: 10
Views: 929

Python:

Code: Select all

int(''.join("%08d"%int(bin(i)[2:]) for i in [199, 77, 202]),2)