Skip to content

Instantly share code, notes, and snippets.

View drichelson's full-sized avatar

Dan Richelson drichelson

View GitHub Profile
@drichelson
drichelson / CLAUDE.md
Created February 20, 2026 14:34
CLAUDE.md with codex + gemini reviewers

Claude's Job

Lead programmer. Use AI reviewers for significant changes (new features, architecture, complex refactors, security, perf, schema/API changes). Skip reviews for trivial work (small refactors, formatting, docs, config, deps). Be skeptical of your own code and reviewer feedback.

Review Process

Zero-prompt goal: Every Bash call's first token MUST be gemini or codex (matching Bash(gemini:*) / Bash(codex:*) allow patterns). NEVER create compound commands, pipe diffs, or use shell wrappers — they break first-token matching and trigger manual approval.

  1. Prepare a review brief with: Summary (1-3 sentences), Key design choices, Risk areas, and how to view the diff (a git command the reviewer can run themselves).
@drichelson
drichelson / hl.json
Created April 2, 2025 22:26
HL api response example
[
{
"time": 1743019532602,
"hash": "0x0268ca06c1f420de8e400414e67fbf012100039323bd5354a86643c2ff08071b",
"delta": {
"type": "internalTransfer",
"usdc": "1000.0",
"user": "0xe973105a27e17350500926ae664dfcfe6006d924",
"destination": "0x531e6fd1c72a47e3ee04475aebf5155b470c8141",
"fee": "1.0"
package us.ledicio.pattern;// In this file you can define your own custom patterns
import heronarts.lx.LX;
import heronarts.lx.LXCategory;
import heronarts.lx.color.LXColor;
import heronarts.lx.model.LXPoint;
import heronarts.lx.parameter.CompoundParameter;
import heronarts.lx.parameter.EnumParameter;
import us.ledicio.Gradient;
// Attempt to minimize boilerplate code
func (l *LdApiClient) DoRequest(verb string, resource string, body interface{}, response interface{}, statusCodePredicate func(int) bool) error {
start := time.Now()
url := fmt.Sprintf("%s/%s", l.BaseUri, resource)
pre := verb + " " + url
var bodyJson []byte
var err error
if body != nil {
bodyJson, err = json.Marshal(body)
@drichelson
drichelson / go_metrics_json.go
Created March 11, 2016 03:32
Demonstration of go-metrics json output
package main
import (
"encoding/json"
"fmt"
"github.com/rcrowley/go-metrics"
)
func main() {
// PrefixedRegistry
@drichelson
drichelson / flash.h
Created January 9, 2016 22:45
Teensy 3.2 SerialFlash
#define CS_PIN 10
#define SI_PIN 11
#define SO_PIN 12
#define SCK_PIN 13
#define FILE_NAME "log.txt"
#include <SerialFlash.h>
#include <SPI.h>
SerialFlashFile file;
@drichelson
drichelson / colorize-maven.sh
Created March 8, 2012 00:16 — forked from mike-ensor/colorize-maven.sh
Colorize Maven output
#!/bin/sh
# Written by Mike Ensor (mike@ensor.cc)
# Copywrite 2012
# Use as needed, modify, have fun!
# This is intended to be used for Maven3 + Mac OSX
#
# To use:
# in your ".bashrc" or ".bash_profile" add the following line:
# source ~/<path to script>/colorize-maven.sh