Skip to content

Instantly share code, notes, and snippets.

@peterkeen
Created April 1, 2010 01:55
Show Gist options
  • Save peterkeen/351211 to your computer and use it in GitHub Desktop.
Save peterkeen/351211 to your computer and use it in GitHub Desktop.
# command-line calorie tracker
# - everything is a recipe
# - recipes can contain other recipes
# - resolve recipes as far as possible
# - if a recipe doesn't resolve, report it as the given name
# - unit conversions via recipes
# - each dated entry has one or more recipes
# recipe: count unit label(?) equivalent(?)
# equivalent: '=' recipe(s /,/)
# entry: date description recipe(s /,/)
# reports
# - register (day, meal, kcal)
# - detailed register (day, meal, each component, kcal)
# - daily average (day, kcal, average kcal), 30 day moving option?
# - balanced against targets
1 egg = 90 kcal
1 slice Dave's Killer Bread (whole wheat) = 150 kcal
1 tbsp crunchy peanut butter = 100 kcal
1 cup whole milk = 120 kcal
1 scoop Trader Joe's protein shake mix = 65 kcal
1 cup heavy cream = 821 kcal
1 oz swiss cheese = 95 kcal
1 lb bacon = 687 kcal
1 cup spinach = 7 kcal
1 tbsp cream cheese = 51 kcal
1 bagel = 350 kcal
1 cup whole milk = 150 kcal
1 Trader Joe's protein shake =
2 cup whole milk,
2 scoop Trader Joe's protein shake mix
1 workout breakfast =
2 egg,
2 tbsp crunchy peanut butter,
2 slice Dave's Killer Bread (whole wheat),
1 unit Trader Joe's protein shake
2010/03/31 breakfst
1 workout breakfast
2010/03/31 snack
1 piece cake = 100 kcal,
1 cup punch = 100 kcal
2010/03/31 lunch
1 Taco Del Mar fish taco = 270 kcal,
1 Taco Del Mar beef taco = 280 kcal,
1 Taco Del Mar rice and black beans = 370 kcal
1 Paula Dean Spinach and Bacon Quiche =
6 egg,
1.5 cup heavy cream,
2 cup spinach,
1 lb bacon,
8 oz swiss cheese,
1 pie crust = 880 kcal
2010/03/31 dinner
0.2 Paula Dean Spinach and Bacon Quiche,
1 bagel,
2 tbsp cream cheese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment