- Fruit = 1-2 servings
- Animal protein = 4 - 6 servings
- Healthy fats = 5 - 9 servings
- Healthy vegetables = 6 - 11 servings
- Healthy fats = 50%
| #!/usr/bin/env python | |
| # shell commands being automated. | |
| # w | |
| # aws ec2 stop-instances --instance-id INSTANCE_ID | |
| # az vm deallocate --name NAME --resource-group RESOURCE_GROUP | |
| """ | |
| The script is the easy part, installing it into the unfriendly(imo) cron system and |
| #!/bin/bash | |
| cat all.json | | |
| # curl 'http://www.khanacademy.org/api/v1/videos/localized/all' | | |
| jq -r ' | |
| [ | |
| .[] | | |
| { | |
| title, | |
| en_id:.youtube_ids["en"], |
| """making a dataframe""" | |
| df = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB')) | |
| """quick way to create an interesting data frame to try things out""" | |
| df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd']) | |
| """convert a dictionary into a DataFrame""" | |
| """make the keys into columns""" | |
| df = pd.DataFrame(dic, index=[0]) |
| # This is free and unencumbered software released into the public domain. | |
| # | |
| # Anyone is free to copy, modify, publish, use, compile, sell, or | |
| # distribute this software, either in source code form or as a compiled | |
| # binary, for any purpose, commercial or non-commercial, and by any | |
| # means. | |
| # | |
| # In jurisdictions that recognize copyright laws, the author or authors | |
| # of this software dedicate any and all copyright interest in the | |
| # software to the public domain. We make this dedication for the benefit |