Skip to content

Instantly share code, notes, and snippets.

View NthPortal's full-sized avatar

Marissa | April NthPortal

View GitHub Profile
@NthPortal
NthPortal / proof.md
Created September 16, 2016 19:06
Keybase proof

Keybase proof

I hereby claim:

  • I am nthportal on github.
  • I am nthportal (https://keybase.io/nthportal) on keybase.
  • I have a public key whose fingerprint is BA6F F781 FFAD 1AE8 3DDF 735D C3FE 56CA 394F B05D

To claim this, I am signing this object:

@NthPortal
NthPortal / hats.py
Created March 11, 2016 08:35
Prisoners in Hats
import random
import itertools
def relative_complement(superset, subset):
return [elem for elem in superset if elem not in subset]
def simulate():
n = 1000