Skip to content

Instantly share code, notes, and snippets.

View henryre's full-sized avatar

Henry Ehrenberg henryre

  • San Francisco, CA
View GitHub Profile
@henryre
henryre / task.toml
Created July 2, 2026 17:04
Minimal Harbor dev allowlist
version = "1.0"
[environment]
base_image = "hello-allowlist:latest"
# Build/setup phase open for controlled installs
network_mode = "public"
[agent]
timeout_sec = 30
@henryre
henryre / CLAUDE.snippet.md
Last active March 5, 2026 01:21
Spec Replay CLAUDE.md snippet

[Paste this snippet somewhere in your CLAUDE.md file]

Spec Replay

What this is

When working from an instruction or spec file, every clarification, decision, preference, constraint, or other input that would be needed to reproduce the same output must be captured automatically. The original spec is never modified. Instead, a replay spec is maintained as a separate file that a fresh session

@henryre
henryre / snorkel_embedding.py
Created January 26, 2017 01:21
Basic corpus embedding in Snorkel
# We assumed that you've parsed your corpus already (equivalent to the first intro tutorial notebook)
# Note that some of the functionality here is only available on Snorkel's dev branch. We'll be adding more soon.
import numpy as np
from snorkel import SnorkelSession
from snorkel.contrib.learning.lsa_embedding import LSAEmbedder, SnorkelGensimCorpus
from snorkel.models import Document
# Load the document corpus
session = SnorkelSession()