Skip to content

Instantly share code, notes, and snippets.

View bilguun's full-sized avatar

Bibby bilguun

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
@vasanthk
vasanthk / System Design.md
Last active March 20, 2026 17:25
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@jwass
jwass / cambridge_raw_osm.geojson
Last active April 11, 2016 04:12
Demonstrate using GeoPandas and geojsonio.py (https://github.com/jwass/geojsonio.py) to view styled data in a few lines. Running the script will open a browser with the final URL: http://geojson.io/#id=gist:/10218442
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.