Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
#!/bin/bash
input=$(cat)
cwd=$(echo "$input" | jq -r '.workspace.current_dir')
# Usage limit: fetch from Anthropic API, cache for 5 minutes
CACHE=/tmp/claude-usage-cache.json
usage_str="?%"
get_token() {
# Claude Code Statusline Setup
Shows `user@host:/cwd use:28% rst:1h45m` in the Claude Code statusline.
The usage % and reset time come from the Anthropic API (5-hour rate limit window).
## Requirements
- `jq` and `curl` installed
- `python3` installed (used for date parsing)
- Claude Code logged in via OAuth
# 2026-02-20 D
Yesterday, while A and C were at Xenotes, S and I got on the boat over to
Xcaret. We went into the "silver mine" and immediately had to put on our
water shoes because it was a bit flooded in places. We went in the aviary
and saw some squonkable beaks, and a butterfly landed on me in the Mariposa
area. Then we were going to go to the beach area but it was very windy. We
went into the Kids World and splashed around a bit but decided to just go
back to the hotel (encountered the flying men show n the way) and eat and
splash in the pools there. Then at least an hour in the really nice
❯ Write a 1000 word essay about the differences between Celeste and Sabina's personalities.
⏺ Two Sisters, Two Worlds: The Personalities of Celeste and Sabina
From the very beginning, Celeste and Sabina have been fundamentally different people — not just in the expected ways that any two
siblings differ, but in ways that feel almost elemental, as if they arrived on earth tuned to entirely different frequencies.
The zoolog, the family diary kept by their parents Daniel and Ariel since before Celeste was born, captures over a decade of
these differences accumulating day by day, forming a portrait of two children who share a home, parents, cats, and an enormous
number of stuffed animals, but who navigate the world through completely distinct internal architectures.
/**
* Booked Scheduler Custom CSS
*
* expects a Slot Label for P1/P2 of the form:
<span class=title>{title}</span>
<span class=lab>{att1}</span>
<span class=event-description>{description}</span>
<span class=ptsource>{att11}</span>
<span class=bodypart>{att17}</span>
<span class=scannedperson>{att2}</span>
# 2026-01-17 D
S: yesterday was a very great day of my life because I found the permit!
Well, the cats found the permit.
S building the Temple of the Permits. An earthquake from another goddess
destroys the entrance. S rebuilds it - the Second Temple! S: The bells are
ringing from the tallest towers! The second temple is OPEN!
S: The worshipper is flying! Could it be another goddess?
abbr e 'emacs -nw'
abbr gist 'gist -c'
abbr gc 'git commit'
abbr gr 'git checkout --'
abbr gs 'git status'
abbr --query s ; or abbr s 'sudo fish' # don't override cluster snippet
abbr sci 'ssh-copy-id'
abbr ta 'tmux attach'
abbr uq 'ug -% -jQU'
alias j 'z'
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://example.org/iiif/67331533/manifest",
"@type": "sc:Manifest",
"label": "Image 67331533",
"sequences": [
{
"@id": "https://example.org/iiif/67331533/sequence/normal",
"@type": "sc:Sequence",
"label": "Normal",
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://example.org/iiif/67331533/manifest",
"@type": "sc:Manifest",
"label": "Image 67331533",
"sequences": [
{
"@id": "https://example.org/iiif/67331533/sequence/normal",
"@type": "sc:Sequence",
"label": "Normal",
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = ["requests"]
# ///
"""
Booked Scheduler API client library.
Common functions for interacting with the Booked Scheduler API at scandium.mclean.harvard.edu.
Usage: