A collection of music APIs, databases, and related tools.
Discover gists
| (() => { | |
| function formatDate(date = new Date()) { | |
| return date.toISOString().split("T")[0]; | |
| } | |
| function escapeMarkdown(text) { | |
| return text | |
| .replace(/\\/g, "\\\\") | |
| .replace(/\*/g, "\\*") | |
| .replace(/_/g, "\\_") |
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.
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.
v5, updated after feedback. Apple Watch shows a daily Sleep Score (0–100) since watchOS 26, but Apple doesn't make it available to other apps: it isn't in HealthKit, so you can't pull it into Home Assistant, a spreadsheet or your own dashboard. Apple publishes what goes into the score but not the maths inside each part.
This formula rebuilds it from raw sleep data. v5 is fitted to Apple's own per-night measurements for 14 nights: the line under each part in the Health app ("7h 25m", "26m earlier than average", "2 wake-ups, 7m total") together with the points Apple gave. Each part predicts a night it wasn't fitted on to within about half a point. It's still an approximation, not Apple's code.
From Apple's support pages (Track your sleep on Apple Watch, View your sleep score)
| """ | |
| 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 |
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "Coop Norway Medlem API", | |
| "version": "4.17.3", | |
| "description": "Reverse-engineered API specification for the Coop Norway \"Coop medlem\" Android app (no.coop.members v4.17.3). Extracted via static analysis of the compiled Dart binary (libapp.so) from the Flutter APK.\n\nThis API powers Norway's Coop loyalty program including purchase history, digital receipts, coupons, Coopay mobile payment, shopping lists, and Shop Express.\n\n**Authentication:** OpenID Connect via Auth0 at https://login.coop.no/\n**Strong Customer Auth (Coopay):** Aera SDK at https://api.aerahost.com/\n\n⚠️ Unofficial, reverse-engineered spec. Use responsibly for personal data access only.", | |
| "contact": { "name": "Helge Sverre", "url": "https://helgesver.re" }, | |
| "license": { "name": "MIT" } | |
| }, | |
| "servers": [ |
| cdparanoia -B -L | |
| cdparanoia III release 10.2 (September 11, 2008) | |
| Ripping from sector 0 (track 1 [0:00.00]) | |
| to sector 152169 (track 17 [2:40.35]) | |
| outputting to track01.cdda.wav | |
| Filter | Description | Example |
|---|---|---|
| allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
| intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
| inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
| allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
| intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |