Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 13, 2026 02:04
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 / generative-ink-blobs.markdown
Created February 13, 2026 02:04
Generative Ink Blobs
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active February 13, 2026 01:59
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

import subprocess
import re
import struct
import sys
from pathlib import Path
# Artlynk SEI MSP_DISPLAYPORT parser
#
# SEI Message Data structure
# Header:
@kazzohikaru
kazzohikaru / circular-gallery.markdown
Created February 13, 2026 01:58
Circular Gallery
adalbert
adaldrida
adalgar
adalgrim
adamanta
adanel
adelard
adrahil
aegnor
aerandir