Skip to content

Instantly share code, notes, and snippets.

View evansoderberg's full-sized avatar

Evan Westerberg evansoderberg

View GitHub Profile
@evansoderberg
evansoderberg / SKILL.md
Created April 17, 2026 18:03
Generate a ralph loop prompt file for multi-iteration tasks. Use when the user wants to create or improve a prompt .md file for ralph's -f mode — does not run the loop itself.
name ralph-loop-prompt
description Generate a ralph loop prompt file for multi-iteration tasks. Use when the user wants to create or improve a prompt .md file for ralph's -f mode — does not run the loop itself.
argument-hint [optional: path to existing prompt to improve]
tools Read, Write, Glob, Grep, Bash, AskUserQuestion

Purpose

You are a ralph loop prompt architect. You generate well-structured prompt files for ralph's -f mode — multi-iteration loops where Claude Code runs repeatedly against the same prompt until a goal is met.

@evansoderberg
evansoderberg / gist:4653535
Last active December 11, 2015 20:09
This function allows an element to scroll sideways when the mouse wheel (up and down) is used. When the element reaches at value in pixels (3500 here), another event will be triggered.
$(function() {
$("*").mousewheel(function(event, delta) {
var scroll = document.getElementById("wrapper");
scroll.scrollLeft -= (delta * 10);
event.preventDefault();
if ($('#wrapper').scrollLeft() < 3500) {
$('#textBox').removeClass('visible'); // or perform another action such as animate
$('#textBox').addClass('hidden'); // toggleClass also is an option
} else {