Go home

Notes

Quick engineering notes, code snippets, and patterns I keep coming back to.

Pinned

Undo the Last Git Commit (Keep Changes)

pinned

Reset the last commit while keeping your staged changes intact.

git cli

Debounce vs Throttle

pinned

The difference between debounce and throttle, and when to reach for each.

javascript patterns

Recent

Learn Quiz Mode

A system prompt for deep, incremental learning through Socratic teaching and active recall.

meta learning prompts

Mutex Pattern in JavaScript

Prevent concurrent access to shared resources using a promise-based mutex.

javascript patterns concurrency

The Handoffs Pattern

Agents transfer control to each other via tool calls. Each agent can hand off to others or respond directly to the user.

ai agents