Skip to content

Instantly share code, notes, and snippets.

@tosbaha
tosbaha / UYAP macOS ARM.md
Last active June 2, 2026 19:16
UYAP macOS ARM

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.

@iamhenry
iamhenry / Software Design Document (SDD).md
Last active June 2, 2026 19:09
Software Design Document Template

Software Design Document (SDD)

1. Introduction

  • Purpose: [Describe the purpose of this document. E.g., to define the design of the XYZ system.]
  • Scope: [Summarize the system's objectives and what is in/out of scope.]
  • Definitions and Acronyms: [List and define important terms.]
  • References: [Link to related documents: requirements, API specs, etc.]

@jose-mdz
jose-mdz / README.md
Last active June 2, 2026 19:04
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
@jeromer
jeromer / compassbearing.py
Last active June 2, 2026 19:01
compass bearing between two points in Python
# LICENSE: public domain
def calculate_initial_compass_bearing(pointA, pointB):
"""
Calculates the bearing between two points.
The formulae used is the following:
θ = atan2(sin(Δlong).cos(lat2),
cos(lat1).sin(lat2) − sin(lat1).cos(lat2).cos(Δlong))
@JuniorDjjr
JuniorDjjr / fakeMainOutputFile.sc
Created November 11, 2021 17:39
SA main.scm source code leaked from GTA SA The Definitive Edition
This file has been truncated, but you can view the full file.
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
// ****************************************PC SA Main Script********************************
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
SCRIPT_NAME MAIN //NEW MAIN
@carloscarmona9934-glitch
carloscarmona9934-glitch / gist:991327aaa01d976dc10077ff1c747a84
Created June 2, 2026 18:55
Why a VIN Check Should Be Your First Step Before Buying a Used Car
# Why a VIN Check Should Be Your First Step Before Buying a Used Car
Buying a used car can save thousands of dollars, but it can also expose buyers to hidden problems if proper research is not performed beforehand.
One of the easiest ways to research a vehicle is by performing a VIN check. A Vehicle Identification Number (VIN) contains valuable information about a vehicle's identity, specifications, and history.
## What Is a VIN Check?
A VIN check is the process of searching a vehicle's 17-character VIN to access available vehicle information. This information can help buyers verify that the vehicle matches the seller's description.