Skip to content

Instantly share code, notes, and snippets.

"""
Simple secure voting system on top of KeyBase and Git.
You must run it from within a Git repository.
Usage:
keyvote.py vote <issue> <choice>
keyvote.py count <issue>
"""
from docopt import docopt

Keybase proof

I hereby claim:

  • I am KaShizui on github.
  • I am koo (https://keybase.io/koo) on keybase.
  • I have a public key whose fingerprint is 4FA7 FE06 719C 1844 9622 09E9 CCA0 DC51 5C6E EFE4

To claim this, I am signing this object:

import cPickle as pickle
import os
import numpy as np
import __main__ as main
# TODO: maintain cache for more than one set of arguments
# TODO: allow arbitrary serializers/deserializers
def meta_path(key):
return ".%s.meta" % key