Skip to content

Instantly share code, notes, and snippets.

@arthirad
arthirad / recipes.py
Created July 13, 2016 11:38
Limiting my day to day choices with a quick recipe generator that helps take the guesswork out of my day to day!
#!/usr/bin/python
import sys
import numpy
from utils import *
from random import shuffle
staples = ['potatoes', 'onions', 'ginger', 'cheese', 'eggs','yogurt']
carb = ['bread', 'noodles', 'rice', 'quinoa']
other = ['gochujang', 'ketchup'] #condiments
@arthirad
arthirad / utils.py
Created July 13, 2016 11:39
utils for my recipes, with functions, etc.
#!/usr/bin/python
import sys
import numpy as np
import random
def is_input_valid(question, input):
valid = {"yes": True, "y": True, "ye": True,
"no": False, "n": False}
if input is None: