Skip to content

Instantly share code, notes, and snippets.

@ThomasThoren
ThomasThoren / _README.md
Last active December 1, 2023 21:18
Public records requests
@ThomasThoren
ThomasThoren / .block
Last active June 26, 2023 13:30
New York Times map reproduction
height: 800
@ThomasThoren
ThomasThoren / Makefile
Last active December 19, 2022 04:45
Shaded relief map
.PHONY: all clean
.SECONDARY:
# Download 90-meter SRTM tiles for Louisiana
zip/srtm_%.zip:
@mkdir -p $(dir $@)
@curl -sS -o $@.download 'http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/$(notdir $@)'
@mv $@.download $@
@ThomasThoren
ThomasThoren / _README.md
Created January 23, 2017 22:56
QGIS keyboard shortcuts

Keyboard shortcuts for QGIS. These have been tested on a Mac, but should also work on Windows.

Open "Settings" -> "Configure Shortcuts..." menu to see full list.

Shortcut Action
Shift + + i Identify features tool
Shift + + h Hide all layers
Shift + + u Show all layers
Shift + ⌘ + h Zoom fit current layer
@ThomasThoren
ThomasThoren / _README.md
Last active February 17, 2021 13:41 — forked from craigds/xml-to-har.py
Convert Internet Explorer's XML HAR file to a JSON HAR file

Setup

pip install -r requirements.txt

Usage

python xml-to-har.py har.xml har.json
@ThomasThoren
ThomasThoren / README.md
Last active September 30, 2019 23:14
Inset map

Uses a small inset map to provide context for the larger, zoomed map. The same bounding coordinates for the raster image are used to create the reference box in the inset map.

@ThomasThoren
ThomasThoren / _README.md
Last active March 10, 2019 18:54
iTerm2

iTerm2

# Default Makefile
# Save as ~/.Makefile or similar and use as starting point for new Makefiles.
PROJECT_DIR=`pwd`
# Keep intermediate files
.SECONDARY:
.PHONY: help

jq

Docs: https://stedolan.github.io/jq/

Download sample JSON data from the City of Austin. This contains traffic light data.

$ curl -o data.json https://data.austintexas.gov/resource/fs3c-45ge.json
@ThomasThoren
ThomasThoren / _README.md
Last active March 9, 2019 19:25
Web browsers