Skip to content

Instantly share code, notes, and snippets.

View craigsc's full-sized avatar

Craig Campbell craigsc

View GitHub Profile
@craigsc
craigsc / ct-worktree-functions.zsh
Created February 11, 2026 23:12
Claude Tree Helper Commands
# ct — Claude worktree helpers for parallel work
# https://gist.github.com/craigsc/46979018ee28788602d3452fb08ef814
#
# Lightweight zsh functions for managing git worktrees, designed for
# running multiple Claude Code sessions in parallel on the same repo.
#
# Each worktree gets its own branch and directory, with configurable
# symlinks so you don't have to reinstall dependencies every time.
#
# Functions:
@craigsc
craigsc / geotiff.client.ts
Created July 9, 2023 22:11
MapLibre GeoTiff source support
import { encode } from "fast-png";
import type { GeoTIFFImage, ReadRasterResult } from "geotiff";
import { fromUrl, Pool } from "geotiff";
import type { RasterSourceSpecification } from "maplibre-gl";
import maplibregl from "maplibre-gl";
const tileSize = 256;
const decoderPool = new Pool();
/**