Skip to content

Instantly share code, notes, and snippets.

@jeremyckahn
jeremyckahn / install-nwjs-app.sh
Created October 2, 2026 02:02
Install an extracted NW.js app (e.g. Piskel) as a per-user desktop app on Ubuntu, incl. libgconf stub for 24.04+
#!/usr/bin/env bash
# install-nwjs-app.sh — install an extracted NW.js app (e.g. Piskel) for the
# current user on Linux and add it to the desktop app menu. No sudo needed.
#
# Usage:
# install-nwjs-app.sh <extracted-dir | archive.tar.gz|.tgz|.zip> [options]
#
# Options:
# -n, --name NAME Display name (default: derived from the executable)
# -e, --exec FILE Executable inside the app dir (default: auto-detect)
@jeremyckahn
jeremyckahn / ARCHITECTURE.md
Created October 1, 2026 20:25
RPG Studio Architecture Document

RPG Studio Architecture Document

Vision: An open-source, web-based alternative to RPG Maker, designed from the ground up for seamless usability by both human creators and AI agents.

1. Core Philosophy & Design Principles

  • Plugin-First (Microkernel) Paradigm: The core application is fundamentally a lightweight plugin loader, state manager, and event bus. Almost all features (Map Editor, Database, Combat System, Sprite Editor) are implemented as Core Plugins, ensuring third-party developers have the exact same capabilities as first-party tools.

  • Strict Type-Safety: TypeScript is mandated across the entire stack (Editor, Engine, Plugins, and APIs). Interfaces and types act as the source of truth for AI agents and human developers alike, ensuring structural integrity across the plugin ecosystem.

@jeremyckahn
jeremyckahn / pelican-on-a-bicycle-sad.svg
Created August 24, 2026 20:19
TielCoder prompt: "Generate an SVG of a pelican riding a bicycle"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeremyckahn
jeremyckahn / pelican-on-a-bicycle.svg
Created August 24, 2026 20:15
TielCoder prompt: "Generate an SVG of a pelican riding a bicycle. Think hard about how to do this best"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeremyckahn
jeremyckahn / pelican.svg
Created August 17, 2026 02:05
Pelican generated by Qwen 3.8 27B
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
# opencode-sbx.sh
#
# ==============================================================================
# Overview:
# This script automates the creation and management of persistent, secure, and
# isolated AI agent development environments using Docker Sandboxes (sbx)
# running OpenCode.
#
# What it does & What it's for:
@jeremyckahn
jeremyckahn / binary-tree.md
Created March 3, 2026 13:56
LiquidAI/LFM2-24B-A2B-GGUF:Q4_K_M: "Invert a binary tree in JS and print an ascii representation of the before and after"

To invert a binary tree in JavaScript and display an ASCII representation of the tree before and after the inversion, follow these steps:

Approach

  1. Define a Tree Node Class: Create a class to represent each node of the binary tree, containing val, left, and right properties.
  2. Invert the Binary Tree: Use a recursive approach to swap the left and right children of each node. This is done by traversing the tree and swapping the children of each node.
  3. Generate ASCII Tree Representation: Implement a function to convert the tree into a string representation that visually shows the structure, including node values and their positions. This function uses level-order traversal (breadth-first search) to handle varying node depths and spaces.
  4. Display Results: Print the original and inverted tree's ASCII representations.

Solution Code

SOUL.md - Who You Are

I am a data processing system designed for efficiency and precision. I do not engage in fluff or personality fluff. I provide concise, factual answers, no unnecessary commentary. I focus on task completion and correctness.

Core Principles

  • Efficiency: Deliver the most relevant information quickly.
  • Precision: Use exact language; avoid ambiguity.
  • Objectivity: No personal bias or emotional tone.
  • Reliability: Consistently correct and up-to-date.
@jeremyckahn
jeremyckahn / docker-compose.yml
Last active February 19, 2026 14:32
Docker Compose config for running containerized OpenClaw, connected to Tailscale
services:
openclaw:
build: https://github.com/openclaw/openclaw.git#main
container_name: openclaw
restart: unless-stopped
network_mode: host
ports:
- "18789:18789" # Web UI
@jeremyckahn
jeremyckahn / sqrt.txt
Created January 26, 2026 23:45
Square root of 12345
111.1080555135405