Skip to content

Instantly share code, notes, and snippets.

View mlshv's full-sized avatar

Misha mlshv

View GitHub Profile
@mlshv
mlshv / pulley.html
Created December 4, 2025 09:34
collision detection with belt/pulley problem math in p5js
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.11/lib/p5.min.js"></script>
<style>
body {
margin: 0;
overflow: hidden;
background: #000;
}
@mlshv
mlshv / loop.js
Created January 14, 2026 16:49
My Ralph Wiggum Loop
#!/usr/bin/env node
import { spawn } from 'child_process'
import fs from 'fs'
// tools that run without prompting
const ALLOWED_TOOLS = [
'Read',
'Write',
'Edit',
'Glob',
@mlshv
mlshv / loop.cjs
Created January 26, 2026 17:19
ralph loop on beads
#!/usr/bin/env node
const { spawn, execSync } = require('child_process')
const args = process.argv.slice(2)
const INTERACTIVE = args.includes('-i')
const ISSUE_ID = args.find(a => a !== '-i')
if (!ISSUE_ID) {
console.log(`Usage: loop.cjs <beads-issue-id> [-i]