Skip to content

Instantly share code, notes, and snippets.

View LeonSilva15's full-sized avatar
🌮
Ex-taco addict

Leon Silva LeonSilva15

🌮
Ex-taco addict
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active October 11, 2026 12:58
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
@hyle
hyle / ko.utils.signatures.js
Last active March 26, 2026 13:46
KnockoutJS utils (ko.utils) signatures
// knockout 2.2.1
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ }