Skip to content

Instantly share code, notes, and snippets.

View anotherjesse's full-sized avatar

Jesse Andrews anotherjesse

View GitHub Profile
@anotherjesse
anotherjesse / claude-compact.md
Created May 15, 2025 09:13
claude /compact prompt

Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions. This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.

Before providing your final summary, wrap your analysis in tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:

  1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
    • The user's explicit requests and intents
    • Your approach to addressing the user's requests
    • Key decisions, technical concepts and code patterns
  • Specific details like file names, full code snippets, function signatures, file edits, etc
@anotherjesse
anotherjesse / simple-hash-server.js
Last active October 2, 2024 16:47
simple hash service to store data
import { Hono } from 'hono'
import { cors } from 'hono/cors'
import { createHash } from 'crypto'
const app = new Hono()
// Add CORS middleware
app.use('*', cors({
origin: '*',
allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
@anotherjesse
anotherjesse / list-gems.ts
Created September 15, 2024 17:48
broken inspect link? gem isn't a cell?
import { recipe, lift, UI, NAME, ID, handler } from "@commontools/common-builder";
import { dataGems, Gem, launch } from "../data.js";
import { html } from "@commontools/common-html";
import { CellImpl } from "@commontools/common-runner";
const dump = lift(({ object }) => JSON.stringify(object, null, 2));
export const jsonView = recipe<{ object: any; name: string }>(
"json debug",
@anotherjesse
anotherjesse / list-gems.ts
Created September 15, 2024 13:33
list gems recipe
import { recipe, lift, UI, NAME, ID, handler } from "@commontools/common-builder";
import { dataGems } from "../data.js";
import { html } from "@commontools/common-html";
const getGems = lift(({ count }) => dataGems.get());
const inc = handler<{}, { count: number }>((_, state) => {
state.count += 1;
});
<script lang="ts">
import { perlinNoise2dFactory } from "squeaker";
let svgCanvas: SVGElement;
let numberOfColors = 1;
const colorOptions = [3, 4, 5];
const palletes: Record<string, string[]> = {
reds: ["#ff0000", "#ff4040", "#ff8080", "#ffc0c0", "#ffe0e0"],
greens: ["#00ff00", "#40ff40", "#80ff80", "#c0ffc0", "#e0ffe0"],
blues: ["#0000ff", "#4040ff", "#8080ff", "#c0c0ff", "#e0e0ff"],
<script lang="ts">
let svgCanvas: SVGElement;
let numberOfColors = 3;
const colorOptions = [3, 4, 5];
const palletes: Record<string, string[]> = {
"reds": ["#ff0000", "#ff4040", "#ff8080", "#ffc0c0", "#ffe0e0"],
"greens": ["#00ff00", "#40ff40", "#80ff80", "#c0ffc0", "#e0ffe0"],
"blues": ["#0000ff", "#4040ff", "#8080ff", "#c0c0ff", "#e0e0ff"],
"yellows": ["#ffff00", "#ffff40", "#ffff80", "#ffffc0", "#ffffe0"],
"purples": ["#ff00ff", "#ff40ff", "#ff80ff", "#ffc0ff", "#ffe0ff"],
@anotherjesse
anotherjesse / pca.json
Created July 3, 2024 06:36
umap_pca_of_clip_sae
This file has been truncated, but you can view the full file.
{
"2": [
0.01681773543658595,
-0.004168102482493682
],
"3": [
0.017646509435702475,
-0.00592362233619472
],
package main
import (
"fmt"
"math/rand"
"os"
"os/signal"
)
const (
@anotherjesse
anotherjesse / book-titles.txt
Created January 27, 2024 16:09
moondream-random.txt
seed: 0 output: The Complete Book of Modern Paisley (Paisley Collection)
seed: 1 output: The Complete Idiot's Guide to Doing Nothing
seed: 2 output: The Complete Guide to Cat Care
seed: 3 output: The Complete Idiot's Guide to Sewing, Stitching, Needlepoint, and More
seed: 4 output: The Complete Idiot's Guide to Tennis: Everything You Need to Know About Tennis, One Game at a Time
seed: 5 output: The Complete Guide to Building a Website (The Complete Guides)
seed: 6 output: The Complete Idiot's Guide to Baking
seed: 7 output: The Complete Guide to Bicycle Repair
seed: 8 output: The Complete Idiot's Guide to Gardening
seed: 9 output: Big Bird Singing Classic
def generate(prompt, filename):
# Simulate the generation process (you can replace this with your actual function)
print(f"Generating '{prompt}' and saving as '{filename}'")
# Options for each category
expressions = ["happy", "sad", "crying", "angry", "open mouth"]
genders = ["male", "female", "non-binary"]
ages = ["kid", "teen", "young adult", "adult", "old"]
ethnicities = ["Caucasian", "Hispanic", "Black", "Middle-Eastern", "South Asian", "East Asian"]
styles = ["realistic", "cartoon", "comics"]