Skip to content

Instantly share code, notes, and snippets.

View jinggqu's full-sized avatar

Anthony jinggqu

  • Hong Kong
  • 10:33 (UTC +08:00)
View GitHub Profile
import json
import sys
from subprocess import getoutput as run_shell
from urllib.request import Request, urlopen
MODEL = "gpt-5.6"
CONTEXT_WINDOW_TOKENS = 1_050_000
endpoint_url = sys.argv[1]
history = []
@karpathy
karpathy / microgpt.py
Last active November 6, 2026 11:35
microgpt
"""
The most atomic way to train and run inference for 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
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active October 12, 2026 02:56
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md