Skip to content

Instantly share code, notes, and snippets.

View nick-brown's full-sized avatar

Nick Brown nick-brown

  • San Francisco, CA
View GitHub Profile
@nick-brown
nick-brown / llm-wiki.md
Created June 2, 2026 00:16 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@nick-brown
nick-brown / elixir_notes.md
Created June 28, 2021 02:54 — forked from fschuindt/elixir_notes.md
My personal study notes on Elixir. It's basically a resume of http://elixir-lang.org/getting-started/ (Almost everything is copied). Still working on it!
@nick-brown
nick-brown / docker.md
Created June 18, 2018 23:14
Dockery Master Notes

Basics

  • engine/server (daemon)

    • docker version or docker info
  • Image: application we want to run

    • hub.docker.com (default image registry)
  • Container: the instance of that image running as a process

    • many containers can run off of the same image
function subMatches(string, subs) {
return []
.concat.apply([], subs.map(sub => matchIndexes(string, sub)))
.reduce((acc, idx) => {
acc[idx] = true;
return acc;
}, Array.from(string).fill(false));
}
function matchIndexes(string, sub, startIndex=0, matches=[]) {
@nick-brown
nick-brown / event-loop.md
Created February 20, 2017 04:03 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code