Skip to content

Instantly share code, notes, and snippets.

View shanedoolane's full-sized avatar
🚜
Farming

Shane Dolan shanedoolane

🚜
Farming
  • Palo Alto, CA
  • 04:40 (UTC -07:00)
View GitHub Profile
@bryant988
bryant988 / zillow.js
Last active June 18, 2024 14:38
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
@decrispell
decrispell / crop_geotiff.py
Last active January 7, 2023 15:56
quick and dirty geotiff crop using rasterio
import rasterio
# load the geotiff (a DSM in this case) and read the data - only one index in this case
dsm = rasterio.open(dsm_fname)
dsm_data = dsm.read()[0]
# crop the data
dsm_crop = dsm_data[min_y:min_y+height, min_x:min_x+width]
# make a copy of the geotiff metadata