Skip to content

Instantly share code, notes, and snippets.

View karmanyaahm's full-sized avatar
💭
hello everyone

Karmanyaah Malhotra karmanyaahm

💭
hello everyone
View GitHub Profile
@karmanyaahm
karmanyaahm / venmoToBuckets.py
Created June 30, 2025 01:51
venmo statement export to budgetwithbuckets.com, run with `~/bin/venmoToBuckets.py VenmoStatement*`, outputs to buckets.csv
#!/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.
@karmanyaahm
karmanyaahm / humiditycalc.py
Created August 8, 2025 06:43
metpy calculate drybox humidity stuff
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}")
@karmanyaahm
karmanyaahm / usageDirectAppToBucketsFile.sql
Last active August 16, 2025 03:30
convert instagram screen time to roth IRA contributions; usageDirect Android app DB to Buckets bugeting app CSV Import; workflow is to import this and then transfer an equivalent sum of money by hand when reconciling your monthly budget; made without AI :)))
#!/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