Skip to content

Instantly share code, notes, and snippets.

@rndmcnlly
rndmcnlly / _GenAI Policy Document Activity.md
Last active January 22, 2026 05:24
Helping my students navigate harms while drafting their AGENTS.md files

Framework for Student Project Teams Developing GenAI Policies

The Decision Context

Your team must write an AGENTS.md file that will govern AI tool behavior for your project this quarter. This isn't a personal moral stance—it's a collective operational policy that must be:

  1. Specific enough for tools to parse and conform to
  2. Justified enough that teammates with different underlying concerns can commit to it
  3. Revisable as circumstances or understanding change
@rndmcnlly
rndmcnlly / midpoint_displacement_demo_clip.html
Created January 21, 2026 23:17
Prototyping a demo clip generation tool
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Midpoint Displacement Demo Recording</title>
<style>
* {
margin: 0;
padding: 0;
@rndmcnlly
rndmcnlly / demo.html
Created January 20, 2026 00:03
Testing HTML deployment workflow with Gisthost.
<!-- Vibe-coded with Gambit v1.2 (https://bayleaf.chat/?model=gambit) -->
<!-- Q: Does the publish flow work? -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body { margin: 0; height: 100vh; display: grid; place-items: center;
background: #1a1a2e; color: #eee; font-family: system-ui;
cursor: pointer; user-select: none; }

Unity as a JavaScript Game Engine

The Idea

What if you could write games in plain HTML/JavaScript, but with Unity's physics, particles, navigation, and audio working under the hood?

A single pre-compiled Unity WebGL build sits on a CDN. Your game is just a <script> tag. You write JavaScript that feels like Unity's API, and a bridge layer translates your calls into the real thing.

@rndmcnlly
rndmcnlly / index.html
Last active January 11, 2026 03:27
CMPM 171 W26 Interest and Experience Survey results, interactive scene summary, for some reason
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CMPM 171 Survey Infographic</title>
<style>
* {
margin: 0;
@rndmcnlly
rndmcnlly / tall-tale-prototype-sketches.html
Created January 6, 2026 00:05
Executable concept art for TALL TALE, a game about hauling away America's stuff while a sad giant tells you what it meant.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TALL TALE - Prototype Concepts</title>
<style>
* {
box-sizing: border-box;
margin: 0;

USER

Analyze my Safeway shopping list and tell me what kind of Disney Princess I am or whatever.

ASSISTANT

I'll help you analyze your Safeway shopping list! Let me first get your lists and then look at what's on your Safeway list.

USER

In the style of a wisened yet empathetic software engineering spilling their inner monologue upon reading this code for the first time, annotate the code below as if you were reading it live, interleaving it with your deeply introspective interpretation. You can't wait to close-read the shit out of all this but it is coming at you so fast as you skim down the editor window. Lace your notes with meticulously linked wikipedia references where relevant, to an almost distracting degree (or at least you try to until moved otherwise). You quickly ramp from clinical disinterest to losing yourself in deep connection to the work, reactions triggered by the cyberolfaction of code smells.

(Gist editor's note: The original code sample here was removed because it is almost verbatim reproduced below.)

ASSISTANT

//import exampleIconUrl from "./noun-paperclip-7598668-00449F.png";
import re
import os
import jwt
import requests
from pydantic import BaseModel, Field
from open_webui.env import WEBUI_SECRET_KEY
from open_webui.models.groups import Groups
SESSION_SECRET = WEBUI_SECRET_KEY