Skip to content

Instantly share code, notes, and snippets.

View oilsinwater's full-sized avatar

Philliph Drummond oilsinwater

View GitHub Profile
@oilsinwater
oilsinwater / llm-wiki.md
Created April 20, 2026 17:39 — 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.

@oilsinwater
oilsinwater / issues.py
Last active July 25, 2024 21:04
Create CSV from Github Issues
import os
import csv
import requests
def fetch_issues(repo_owner, repo_name):
# Initialize an empty list to store issues
issues = []
# Start with the first page of results
page = 1
# Set the number of issues to fetch per page
Handlebars is a semantic web template system, started by Yehuda Katz in 2010.
Handlebars.js is a superset of Mustache, and can render Mustache templates in addition to Handlebars templates.
More: http://handlebarsjs.com/
1. Expressions.
1.1 Basic usage.
@oilsinwater
oilsinwater / gulpfile.js
Created September 9, 2018 05:11
gulp file
/**
* Gulp config
*/
// Load plugins
let gulp = require('gulp');
let gulpLoadPlugins = require('gulp-load-plugins');
let del = require('del');
let browserSync = require('browser-sync').create();
let browserify = require('browserify');
const staticCache = 'static-restaurant-1';
//open cache and add specified files to it
const requiredFiles = [
'/sw.js',
'/index.html',
'/restaurant.html',
'/js/dbhelper.js',
'/js/main.js',
@oilsinwater
oilsinwater / settings.json
Last active August 5, 2018 01:01
VS Code settings
{
"cSpell.language": "en",
"cSpell.userWords": [
"Drummond",
"Philliph",
"celsius",
"kelvin",
"newton",
"require"
],
@oilsinwater
oilsinwater / config
Created August 2, 2018 01:46
~/.ssh/config
# ssh(1) obtains configuration data from the following sources in the following order:
#
# 1. command-line options
# 2. user's configuration file (~/.ssh/config)
# 3. system-wide configuration file (/etc/ssh/ssh_config)
#
# For each parameter, the first obtained value will be used. The configuration files contain sections separated
# by “Host” specifications, and that section is only applied for hosts that match one of the patterns given in the
# specification. The matched host name is the one given on the command line.
#
@oilsinwater
oilsinwater / cryptoZombies.md
Last active January 25, 2024 16:46
CryptoZombies Notes

CryptoZombies.io Notes

Contracts

Solidty's code is encapsulated in contracts. A contract is the fundamental building block of Ethereum applications -- i.e. all variables and functions belong to a contract, and are the starting point of your project. Below is an example of an empty contract called HelloWorld.

@oilsinwater
oilsinwater / hamburger.js
Created May 24, 2018 23:56
Off-Canvas Hamburger menu
// Here's the JavaScript used to toggle the open class:
menu.addEventListener('click', function(e) {
drawer.classList.toggle('open');
e.stopPropagation();
});
// Here's the relevant CSS for transitioning the hamburger menu:
nav {
@oilsinwater
oilsinwater / regExNotes.md
Last active August 26, 2024 03:32
RegEx notes

RegEx Notes

Regular Expression Basics

expression description
. Any character except newline
a The character a
ab The string ab