Skip to content

Instantly share code, notes, and snippets.

Avatar

Arthi arthirad

  • California
View GitHub Profile
@arthirad
arthirad / utils.py
Created Jul 13, 2016
utils for my recipes, with functions, etc.
View utils.py
#!/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:
@arthirad
arthirad / recipes.py
Created Jul 13, 2016
Limiting my day to day choices with a quick recipe generator that helps take the guesswork out of my day to day!
View recipes.py
#!/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
You can’t perform that action at this time.