Skip to content

Instantly share code, notes, and snippets.

@MElmardi
MElmardi / llm-wiki.md
Created April 5, 2026 01:43 — 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.

@MElmardi
MElmardi / claude_3.5_sonnet_artifacts.xml
Created July 2, 2024 21:22 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@MElmardi
MElmardi / commit.js
Created December 9, 2023 13:18 — forked from quilicicf/commit.js
Commit multiple files at once from a GitHub repository using the REST API
/**
* This file shows how to commit a set of files to a GitHub repository using the REST v3 API
* Because it is not trivial...
* It was last tested to work on 2020/12/10
*
* The script is supposed to be called like this: node commit.js quilicicf Depotware myBranch
* Where the arguments are in order: the owner of the repository, the name of the repository and
* the name of the branch where the commit will be done.
*
* It assumes there is a valid GitHub personal access token available as environment variable: GITHUB_TOKEN
@MElmardi
MElmardi / job.service.spec.ts
Created February 15, 2023 12:16 — forked from rinogo/job.service.spec.ts
Integration Testing a NestJS Service that leverages Prisma
import { Test, TestingModule } from '@nestjs/testing';
import { PrismaService } from '../prisma.service';
import { JobService } from './job.service';
import * as crypto from 'crypto';
describe('JobService', () => {
let service: JobService;
let prisma: PrismaService;
beforeEach(async () => {
@MElmardi
MElmardi / README.md
Created December 20, 2022 10:24 — forked from CypherpunkSamurai/README.md
Colab-Stable-diffusion

Colab Stable Diffusion

This contains all popular colab stable diffusion notebooks released.

@MElmardi
MElmardi / tailwind-to-css.js
Created November 25, 2022 22:06 — forked from sastan/tailwind-to-css.js
Extract CSS Object from Tailwind classes
import { create } from 'https://cdn.skypack.dev/twind'
const { tw: TW } = create({ preflight: false })
const tw = (...tokens) => {
let styles
TW(({ css }) => {
styles = css(...tokens)
styles._ = undefined
return ''
@MElmardi
MElmardi / tailwind.colors.json
Created November 25, 2022 22:04 — forked from himerus/tailwind.colors.json
Tailwind CSS color variables in JSON format, ready for Amazon Style Dictionary.
{
"color": {
"slate": {
"50": { "value": "#f8fafc" },
"100": { "value": "#f1f5f9" },
"200": { "value": "#e2e8f0" },
"300": { "value": "#cbd5e1" },
"400": { "value": "#94a3b8" },
"500": { "value": "#64748b" },
"600": { "value": "#475569" },
@MElmardi
MElmardi / startup_tools.md
Created November 20, 2022 19:58 — forked from Jonremus/startup_tools.md
Curated directory of the best startup tools

Here are the best startup tools of 2019 that will help you build out your startup business as quickly, cheaply, and efficiently as possible.

This is a curated list of tools for everything from productivity to web hosting to development tools to designing. Most of these tools are either free or have limited free option that is enough for startups. We love all the free services out there, but it would be good to keep it on topic. It's a bit of a grey line at times so this is a bit opinionated; feel free to suggest and contribute in this list.

Source Code Repos

  • GitHub — Unlimited public repositories and unlimited private repositories (up to 3 collaborators).
  • GitLab — Unlimited public and private Git repos with unlimited collaborators.
  • BitBucket — Unlimited public and private repos (Git and Mercurial) for up to 5 users with Pipelines for CI/CD.
  • Visual Studio — Unlimited private repos (Git a
export const colors = {
Gray: {
"50": "#F9FAFB",
"100": "#F3F4F6",
"200": "#E5E7EB",
"300": "#D1D5DB",
"400": "#9CA3AF",
"500": "#6B7280",
"600": "#4B5563",
"700": "#374151",
@MElmardi
MElmardi / color.js
Created November 19, 2022 15:05 — forked from andy3520/color.js
Tailwind UI default config and color, form
module.exports = {
transparent: 'transparent',
white: '#ffffff',
black: '#000000',
gray: {
'50': '#f9fafb',
'100': '#f4f5f7',
'200': '#e5e7eb',
'300': '#d2d6dc',
'400': '#9fa6b2',