Skip to content

Instantly share code, notes, and snippets.

View biesnecker's full-sized avatar

biesnecker

  • Orlando, FL
  • 11:24 (UTC -04:00)
View GitHub Profile
# Reference makefile:
# https://gist.github.com/anonymous/b469f85762e93ea1b51f0f0f97e19acc
# All the flags created by configure
OPT = [
"-DNDEBUG",
"-g",
"-fwrapv",
"-O3",
"-Wall",
@biesnecker
biesnecker / choices.py
Last active August 29, 2015 14:12 — forked from anonymous/choices.py
#!/usr/bin/env python
# usage: choices choice_a 1 choice_b 5 choice_c 4
# will return choice_a 10% of the time, choice_b 50% of the time
# and choice_c 40% of the time
from random import randrange
import sys
options = []