Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 13, 2026 01:51
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@kazzohikaru
kazzohikaru / index.html
Created February 13, 2026 01:50
Lando Norris Text Effect Syntax Challenge
<nav>
<a href="#" class="split" style="--font-width: 125">
TikTok
</a>
<a href="#" class="split">
Instagram
</a>
<a href="#" class="split" style="--font-width: 94.5">
Twitter
</a>
@kazzohikaru
kazzohikaru / css-scroll-focus-text.markdown
Created February 13, 2026 01:49
CSS-Scroll-Focus-Text
@humorless
humorless / CLAUDE.md
Last active February 13, 2026 01:49
CLAUDE.md extension for a new Clojure empty project (which is created by "Clojure Stack Lite")

Dev Workflow

  • After editing source files, use brepl to require the changed namespace with :reload and test interactively, rather than relying solely on curl or bb test.

Interactive Development Techniques

  • Call handlers directly — Ring handlers are pure functions (request map → response map). Test them in brepl without going through HTTP or middleware: (handlers/home-handler {}), (handlers/inspect-handler {}). Inspect response structure with (keys resp) before dumping the full body.
  • Verify routes with Reitit — Use reitit.core/match-by-path to check route matching interactively without a browser: (reitit.core/match-by-path (reitit.ring/router app-routes/routes) "/"). Useful for verifying newly added routes before integration testing.
  • Compose and inspect HoneySQL queries — Build queries incrementally as data and preview the generated SQL with (honey.sql/format query {:quoted true}) before sending to the database. This lets you verify correctness without executing a