Maverick

Posted by s on Oct. 8, 2008, 4:01 p.m.

Anybody can make a meme, anybody!

Modification of SNL opening with "Anybody can become president, anybody!"

Now go read loads of bull while I go read some borrowed book I was granted for a few monthes today

Comments

s 16 years, 2 months ago

That's great to know I'll just shun you out with the power of Python and bitwise ops that apply to any radix

def ror(x,y,Z=2):

. r=0

. z=1

. while x or y:

. . r+=max(x%Z,y%Z)*z

. . x/=Z

. . y/=Z

. . z*=Z

. return r

def ran(x,y,Z=2):

. r=0

. z=1

. while x and y:

. . r+=min([x%Z,y%Z])*z

. . x/=Z

. . y/=Z

. . z*=Z

. return r

def rxo(x,y,Z=2):

. r=0

. z=Z

. while x or y:

. . r+=(x%Z-y%Z if x%Z>y%Z else y%Z-x%Z)*z

. . x/=Z

. . y/=Z

. . z*=Z

. return r

PY 16 years, 2 months ago

I guess DeathAndGrim would pass, then.