| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| # Better terminal colors | |
| set -g default-terminal "tmux-256color" | |
| set -as terminal-overrides ",xterm-256color:RGB" | |
| # Status bar | |
| set -g status-position bottom | |
| set -g status-justify left | |
| set -g status-interval 5 | |
| set -g status-left-length 25 | |
| set -g status-right-length 50 |
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.
| document.addEventListener('copy', function(event) { | |
| var selectedText = window.getSelection().toString(); | |
| var pageLink = "\nSource: " + document.location.href; | |
| var copyText = selectedText + pageLink; | |
| event.clipboardData.setData('text/plain', copyText); | |
| event.preventDefault(); | |
| }); |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io, fmt) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64.
| CREATE OR REPLACE FUNCTION insta5.next_id(OUT result bigint) AS $$ | |
| DECLARE | |
| our_epoch bigint := 1314220021721; | |
| seq_id bigint; | |
| now_millis bigint; | |
| shard_id int := 5; | |
| BEGIN | |
| SELECT nextval('insta5.table_id_seq') %% 1024 INTO seq_id; | |
| SELECT FLOOR(EXTRACT(EPOCH FROM clock_timestamp()) * 1000) INTO now_millis; | |
| result := (now_millis - our_epoch) << 23; |
| alias p5="ps -eo comm,pcpu --sort -pcpu | head -6; ps -eo comm,pmem --sort -pmem | head -6" |
| %3F => ? | |
| %3D => = |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| import json | |
| class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(200) | |
| self.send_header('Content-type', 'application/json') | |
| self.end_headers() | |
| response = { |
| { | |
| "python.analysis.typeCheckingMode": "basic", | |
| "python.analysis.autoImportCompletions": true, | |
| "[python]": { | |
| "editor.defaultFormatter": "ms-python.black-formatter", | |
| "editor.formatOnSave": true, | |
| "editor.codeActionsOnSave": { | |
| "source.organizeImports": "explicit" | |
| }, | |
| }, |