Projects
Open-source tools and interactive experiments I’ve built over the years.
Open source05
- Go asciigraph ↗ A Go package to create lightweight ASCII line graphs in command-line apps, with no external dependencies. Example 1 ↗Example 2 ↗ ★ 3.1k
Every earthquake on Earth in the last 24 hours, live from the US Geological Survey and drawn the way asciigraph draws.
Draw it in your terminal
installgo install github.com/guptarohit/asciigraph/cmd/asciigraph@latestruncurl -s https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson | jq '(now * 1000) as $t | reduce (.features[].properties | select(.type == "earthquake" and .mag)) as $q ([range(72) | 2]; (($q.time - $t) / 864e5 * 72 + 72 | floor) as $i | if $i >= 0 and $i < 72 then .[$i] = ([.[$i], $q.mag] | max) else . end) | .[]' | asciigraph -h 10 -lb 2 -ub 7 -p 1 -xmin -24 -xmax 0 -c "Earthquakes in the last 24 hours (0 is now)"No Go? Take a binary from the releases page instead. The run needs curl and jq too.
- Python cryptoCMD ↗ A Python library to fetch historical cryptocurrency price data from CoinMarketCap. ★ 611
- Rust mfp ↗ A Rust CLI tool for playing music mixes from musicforprogramming.net, designed for programming and focus. ★ 63
- Python freshpaper ↗ A Python utility that sets your desktop wallpaper to the daily image from various sources. PyPI ↗ ★ 44
- macOS dotfiles ↗ My personal dotfiles for macOS, featuring configurations for iterm2, git, vim, zsh, and stow. ★ 10
Interactive guides06
Cherry to Cup
A field guide to specialty coffee. Follow one cherry from flower to cup, then find your brew on the control chart in the Brew Lab.
Music, from zero
A playable guide to music, built up from one guitar string. Eleven short chapters, and every step makes a sound.
How antennas work
How a stick of metal talks to the sky, starting from ripples on a pond. Eleven short chapters, no physics needed, and you can play with most of the pictures.
How electricity works
What really happens when you flip a switch, built up from a single electron. Twelve short chapters, with something to play with in each.
How noise-cancelling headphones work
How adding sound makes the world quieter, built up from a single squeeze of air. Ten short chapters you can see and hear, from the quiet spot at your ear to the chip that races the noise.
How quantum computers work
What makes a quantum computer different from the one in your pocket, built up from a single coin flip. Fifteen short chapters with live experiments, from a coin that always lands heads to the chip at the bottom of the fridge.