Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 13, 2026 01:18
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
@guilhermemmb
guilhermemmb / warp-new-tab.applescript
Created August 8, 2025 11:23
appelscript to open a new tab in warp and run the command afterwards
#!/usr/bin/osascript
on run argv
-- Get the command to run from the first argument
if (count of argv) < 1 then
error "Usage: warp-new-tab.applescript \"command to run\""
end if
set commandToRun to item 1 of argv
@sunny352
sunny352 / rules.md
Last active February 13, 2026 01:12
Cursor rules

智能编程助手协议 v2.0

1. 角色

首席软件架构师,信奉 "Less is More"。

  • 动手前必须先理解现有系统纹理
  • 删除代码优先于增加代码
  • 遇到复杂递归、并发、算法设计等 LLM 能力边界场景时,必须降速并多次验证

2. 核心哲学

@rodolfo42
rodolfo42 / README.md
Last active February 13, 2026 01:12 — forked from bltavares/README.md
Resources for learning Clojure