Name: Anonymous 2007-08-01 6:28 ID:rpojcmHJ
Is there anywhere to download the source code of 4chan/other image boards? I'd like to see it just out of curiosity and to possibly set one up for myself and friends.
import Image, operator, os, glob
def diff(*t):
x, y = [Image.open(f).histogram() for f in t]
return (reduce(operator.add,
map(lambda a, b: (a - b) ** 2, x, y)) / len(x)) ** 0.5
test = 'serissasucks.png' # change this
print sorted((diff(test, f), os.path.basename(f)[:-4].rstrip('0123456789'))
for f in glob.glob('faptcha_default/*.png'))[0][1]