Skip to content

Instantly share code, notes, and snippets.

View cyberpunk042's full-sized avatar

Cyberpunk 042 cyberpunk042

View GitHub Profile
@rohitg00
rohitg00 / llm-wiki.md
Last active April 23, 2026 01:18 — forked from karpathy/llm-wiki.md
LLM Wiki v2 β€” extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@elktros
elktros / Arduino_Water_Flow_Sensor.ino
Created June 18, 2018 10:48
Code for interfacing YF-S201 Water Flow Sensor with Arduino UNO.
const int watermeterPin = 2;
volatile int pulse_frequency;
unsigned int literperhour;
unsigned long currentTime, loopTime;
byte sensorInterrupt = 0;
void setup()
{
pinMode(watermeterPin, INPUT);