Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am heinzf on github.
  • I am heinz (https://keybase.io/heinz) on keybase.
  • I have a public key ASCFXQKyCAomXzg05PGAB7DWBeSZFCzLaJVz-9YKIzq2NQo

To claim this, I am signing this object:

@heinzf
heinzf / truthiness.py
Last active August 29, 2015 13:56
Truthiness
class Truthiness():
from random import random
_True = 1 == 1
_False = 1 == 0
def __init__(self, value):
self.value = value
def __str__(self):
return 'True'
def __int__(self):
if random.random() < self.value: