Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 16, 2026 20:45
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
@jeguzzi
jeguzzi / Instructions.md
Last active February 16, 2026 20:44
How to compile CoppeliaSim on Linux

How to compile CoppeliaSim (v4.4) from source on Linux

Tested on Ubuntu 22.04 (arm64 and x64)

  1. Install dependicies

  • pip: sudo apt install python3-pip
  • colcon: pip install -U colcon-common-extensions
@tsl0922
tsl0922 / .tmux.conf
Last active February 16, 2026 20:39
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
@burkeholland
burkeholland / ainstall.md
Last active February 16, 2026 20:38
Ultralight Orchestration

Ultralight Orchestration

A minimal multi-agent system with an orchestrator, a planner, a coder, and a designer working together providing orchestration between Claude, Codex and Gemini.

Instructions

Install all agents listed below into VS Code Insiders...

Title Type Description
@quinnlovespooh
quinnlovespooh / mcpe_slime_chunks.java
Created November 14, 2017 22:53
Reverse engineered MCPE "slime-chunk" code; by @protolambda and @jocopa3
public static boolean isSlimeChunk(int cX, int cZ){
//
// MCPE slime-chunk checker
// From Minecraft: Pocket Edition 0.15.0 (0.15.0.50_V870150050)
// Reverse engineered by @protolambda and @jocopa3
//
// NOTE:
// - The world-seed doesn't seem to be incorporated into the randomness, which is very odd.
// This means that every world has its slime-chunks in the exact same chunks!
// Update: @_tomcc has confirmed in a reddit PM that this is "entirely possible!".