Skip to content

Instantly share code, notes, and snippets.

View mdzhang's full-sized avatar
🇵🇸
decolonizepalestine.com

meesh mdzhang

🇵🇸
decolonizepalestine.com
View GitHub Profile
Tag Number Section Species scientific_name common_name
1 N Juniperus virginiana 'Corcorcor' EMERALD SENTINEL (Emerald Sentinel Juniper) Juniperus virginiana 'Corcorcor' EMERALD SENTINEL Emerald Sentinel Juniper
2 O Juniperus virginiana 'Corcorcor' EMERALD SENTINEL (Emerald Sentinel Juniper) Juniperus virginiana 'Corcorcor' EMERALD SENTINEL Emerald Sentinel Juniper
3 O Robinia pseudoacacia (Black Locust) Robinia pseudoacacia Black Locust
4 O Robinia pseudoacacia (Black Locust) Robinia pseudoacacia Black Locust
5 O Pinus resinosa (Red Pine) Pinus resinosa Red Pine
6 O Pinus resinosa (Red Pine) Pinus resinosa Red Pine
7 N Pinus resinosa (Red Pine) Pinus resinosa Red Pine
11 N Robinia pseudoacacia (Black Locust) Robinia pseudoacacia Black Locust
14 O Pinus resinosa (Red Pine) Pinus resinosa Red Pine
@mdzhang
mdzhang / laurel.py
Created November 25, 2024 12:15
laurel.py
"""
Convert https://laurelhillphl.comtch/app/uploads/2024/07/Laurel-Hill-Trees-as-of-7.2.2024.pdf to CSV.
"""
import re
import tabula
import pandas as pd
import logging
FORMAT = "%(message)s"
logging.basicConfig(level=logging.INFO, format=FORMAT, datefmt="[%X]")
Scientific Name Common Name Cultivars size size description
Acer buergerianum Trident Maple SMALL Under 30’ at maturity (suitable below primary wires)
Acer campestre Hedge Maple SMALL Under 30’ at maturity (suitable below primary wires)
Acer griseum Paperbark Maple SMALL Under 30’ at maturity (suitable below primary wires)
Acer henryi Henry’s Maple SMALL Under 30’ at maturity (suitable below primary wires)
Acer tataricum Tartarian Maple Hotwings, Patdell, Pattern Perfect SMALL Under 30’ at maturity (suitable below primary wires)
Acer triflorum Three Flowered Maple SMALL Under 30’ at maturity (suitable below primary wires)
Amelanchier arborea Downy Serviceberry SMALL Under 30’ at maturity (suitable below primary wires)
Amelanchier laevis Allegheny Serviceberry Cumulus, Lustre, Spring Flowers SMALL Under 30’ at maturity (suitable below primary wires)
Amelanchier x grandiflora Apple Serviceberry Autumn Brilliance, Robin Hill SMALL Under 30’ at maturity (suitable below primary wires)
@mdzhang
mdzhang / phl_fy25_budget.csv
Last active August 10, 2024 13:14
philadelphia city budget per agency for 2025 (p76-84)
agency line_item 2023_actual 2024_estimated 2025_proposed
General Fund Total 5,918,381,090 6,427,174,660 6290641000.0
Pers. Svcs.-Emp.Benefits Total 1,625,941,393 1,625,487,164 1677120077.0
Police Purchase of Services 12,858,864 16,369,164 19504171.0
Police Personal Services 761,129,391 800,086,615 841047186.0
Police Materials, Supplies & Equip. 16,589,787 16,875,982 16884475.0
Police Contrib., Indemnities & Taxes 33,632,784 0 0.0
Police Payments to Other Funds 5,000,000 45,000,000 0.0
Police Total 829,210,826 878,331,761 877435832.0
Fire Contrib., Indemnities & Taxes 1,150,294 0 0.0
@mdzhang
mdzhang / deleteold.sh
Created January 24, 2024 21:22
delete old git branches
#!/bin/bash
git fetch --prune
for k in $(git branch -r --sort=committerdate | head -n 100); do
if [ -z "$(git log -1 --after='2 years ago' -s $k)" ]; then
br=$(echo $k | cut -d'/' -f2-)
echo "Removing $br"
echo "--"
@mdzhang
mdzhang / deploy.sh
Created August 7, 2023 18:25
Deploy a ZAF app in CI
#!/bin/bash
set -o errexit
set -e
COLOR='\033[1;36m'
RED='\033[0;31m'
NC='\033[0m' # No Color
die()
@mdzhang
mdzhang / uke-key.txt
Last active November 8, 2021 20:11
ukelele key card
Major Key
I II III IV V VI VII
A A Bm C#m D E F#m G#dim
B B C#m D#m E F# G#m A#dim
C C Dm Em F G Am Bdim
D D Em F#m G A Bm C#dim
E E F#m G#m A B C#m D#dim
F F Gm Am A# C Dm Edim
G G Am Bm C D Em F#dim
@mdzhang
mdzhang / keybase.md
Last active February 20, 2021 18:29

Keybase proof

I hereby claim:

  • I am mdzhang on github.
  • I am mdzhang (https://keybase.io/mdzhang) on keybase.
  • I have a public key whose fingerprint is 1392 FAAD 8AFC 2222 AD84 195E 1650 A224 DE3E 63DB

To claim this, I am signing this object:

@mdzhang
mdzhang / release
Created December 4, 2020 06:59
Release
#!/bin/bash
set -ex
command -v gh >/dev/null 2>&1 || die "gh is required but not installed. Aborting. See https://github.com/cli/cli"
usage()
{
echo " Usage: ${0}
@mdzhang
mdzhang / nomad.py
Created October 12, 2019 19:24
Scrape NomadList for data and dump to CSV
"""Scrape data from NomadList into local CSV.
Usage:
python scrape.py --cities Austin 'Chiang Mai' Taipei Auckland Ubud 'Buenos Aires' 'Mexico City'
"""
import argparse
import logging
import os
import re
import string