This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| venmoToBuckets.py | |
| Merge one or more Venmo CSV exports into buckets.csv | |
| ID, Date (YYYY‑MM‑DD), Memo, Amount | |
| • Amount keeps the sign but no dollar symbol. | |
| • Deduplicates by ID across all inputs. | |
| • Prints each file’s ending balance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from metpy.calc import * | |
| from metpy.constants.nounit import epsilon | |
| from metpy.units import units | |
| print("epsilon", epsilon) | |
| p = 1 * units.atm | |
| T_amb = 20 * units.degC | |
| rh = .90 * units.atm/units.atm | |
| print(f"starting_rel_humid {rh.to('percent'):.1f}") | |
| print(f"ambient_temp {T_amb.to('degC'):.1f}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # run this as chmod +x ~/bin/usageDirectAppToBucketsFile.sql; ~/bin/usageDirectAppToBucketsFile.sql usageDirect-history.sqlite3 | |
| tail -n +6 "$0" | sqlite3 "$1" | |
| exit $? | |
| -- sql commands | |
OlderNewer