Skip to content

Instantly share code, notes, and snippets.

View terrapass's full-sized avatar

Taras Denysenko terrapass

View GitHub Profile
"""
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
@GlitchWitch
GlitchWitch / rtl8156-ubuntu.md
Last active November 14, 2025 02:23
Setup the RTL8156 USB2.5G Ethernet Adapter on Ubuntu 20.04
@tylerneylon
tylerneylon / learn.lua
Last active March 6, 2026 07:27
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------