Skip to content

Instantly share code, notes, and snippets.

View sconybeare's full-sized avatar

Sebastian Conybeare sconybeare

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sconybeare on github.
  • I am sconybeare (https://keybase.io/sconybeare) on keybase.
  • I have a public key whose fingerprint is C924 C149 C4DE 339A 948B 0DA4 4377 36B2 9FF8 1661

To claim this, I am signing this object:

@sconybeare
sconybeare / coins.py
Last active September 15, 2017 22:22
from fractions import Fraction
from itertools import chain, combinations, product
from random import randrange
from collections import Counter
def powerset(xs):
xs = list(xs)
return chain.from_iterable(combinations(xs, r) for r in xrange(len(xs) + 1))
def normalize_state(pnls):
@sconybeare
sconybeare / configuration.nix
Created March 15, 2017 16:32
macbook configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
in
{