Skip to content

Instantly share code, notes, and snippets.

View banagale's full-sized avatar

Rob Banagale banagale

View GitHub Profile
@banagale
banagale / prompt.md
Created April 15, 2026 18:50
Slackmoji sprite sheet prompt: between a rock and a hard place
session_id c758ce42-42c0-4b26-adf6-b9bc6a6e1b32
date 2026-04-15

Create a sprite sheet PNG for an animated emoji.

Dimensions: 1024x512 pixels Layout: 4 columns x 2 rows grid. Each cell is 256x256 pixels. Background: Transparent background in every cell. No solid color fill.

@banagale
banagale / spirited_away_clips_v2.html
Created April 14, 2026 04:39
Spirited Away - TTS replacement audio clips (playable in browser)
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><title>Spirited Away - Replacement Audio Clips</title>
<style>
body { font-family: -apple-system, sans-serif; max-width: 700px; margin: 40px auto; padding: 20px; }
h1 { font-size: 1.4em; }
table { border-collapse: collapse; width: 100%; margin: 20px 0; }
td, th { border: 1px solid #ddd; padding: 8px; text-align: left; font-size: 0.9em; }
th { background: #f5f5f5; }
@banagale
banagale / chatgpt-shift-arrow-selection-restore-console-test-snippet.js
Last active October 2, 2025 18:11
Restore native Shift+Arrow text selection behavior in ChatGPT message editors
// Natural Selection - Console Test Snippet - Extension here: https://github.com/banagale/natural-selection
// Restores native Shift+Arrow text selection in ChatGPT editors
(() => {
'use strict';
let guardUntil = 0;
const arm = (ms) => guardUntil = performance.now() + ms;
const active = () => performance.now() < guardUntil;
let currentEditor = null;
@banagale
banagale / CLAUDE.md
Created July 10, 2025 14:07
python version of a claude.md

Claude General Preferences

This file contains general preferences and guidelines for Claude that apply across all projects. Include this file in any project where you want consistent Claude behavior.

Code Style & Quality

Python

  • Follow PEP 8 style guide
  • Use type hints for all function signatures
@banagale
banagale / CLAUDE.md
Created July 10, 2025 14:04
a proposed sample claude for a swift project

Claude Swift/iOS Project Preferences

This file contains general preferences and guidelines for Claude when working on Swift/iOS/macOS projects. Include this file in any Swift project where you want consistent Claude behavior.

Code Style & Quality

Swift

  • Follow Swift API Design Guidelines
  • Use descriptive, Swift-style naming (e.g., isEnabled not getEnabled)
@banagale
banagale / slack_summary_llm_prompt_context.md
Created July 7, 2025 16:17
Provides an example prompt to use with a slackprep slack conversation export

Welcome-Back Slack Summarizer

How to use: 0. Use slackprep to export one or more slack conversations: https://github.com/banagale/slackprep

  1. Paste the Slack export between the lines below.
  2. To change the style of summary, edit Analysis Mode (options: Comprehensive, Action-Items First, High-Level, Decisions & Blockers).

Execute prompt below

@banagale
banagale / convert_and_resize.sh
Created July 2, 2024 21:39
Convert and Resize images to something more reasonable for email
#!/bin/bash
# Define source and destination directories
SOURCE_DIR="./"
DEST_DIR="./"
# Create destination directory if it doesn't exist
mkdir -p "$DEST_DIR"
# Resize and convert images
@banagale
banagale / .django_functions.zsh
Last active September 13, 2024 19:18
Shortcuts to common django management commands for a project running poetry
# Django-related shell functions for zsh
# Run development server
function runserver() {
poetry run python ./manage.py runserver "$@"
}
# Run tests
function runtests() {
poetry run python ./manage.py test "$@"
@banagale
banagale / digital-ocean-slugs.md
Created October 29, 2023 05:53
Digital Ocean Droplet Slugs
Class Slug RAM CPU Disk Transfer Price Monthly Price Hourly
Basic s-1vcpu-512mb-10gb 0.5 GB 1 10 GB 0.5 TB $4 $0.00595
Basic s-1vcpu-1gb 1 GB 1 25 GB 1 TB $6 $0.00893
Basic AMD s-1vcpu-1gb-amd 1 GB 1 25 GB 1 TB $7 $0.01042
Basic Intel s-1vcpu-1gb-intel 1 GB 1 25 GB 1 TB $7 $0.01042
Basic Intel s-1vcpu-1gb-35gb-intel 1 GB 1 35 GB 1 TB $8 $0.0119
Basic s-1vcpu-2gb 2 GB 1 50 GB 2 TB $12 $0.01786
Basic AMD s-1vcpu-2gb-amd 2 GB 1 50 GB 2 TB $14 $0.02083
Basic Intel s-1vcpu-2gb-intel 2 GB 1 50 GB 2 TB $14 $0.02083
@banagale
banagale / widen-chatgpt.js
Last active September 29, 2023 17:34
Widen chatgpt output column to full width
// Run this in console, keeps hideable left nav column chat history in place.
// "Works" as of 9/29/23
function updateClassName(element) {
if (element.className === 'flex flex-1 gap-4 text-base mx-auto md:gap-6 gizmo:gap-3 gizmo:md:px-5 gizmo:lg:px-1 gizmo:xl:px-5 md:max-w-3xl }') {
element.className = 'flex flex-1 gap-4 text-base mx-auto md:gap-6 gizmo:gap-3 gizmo:md:px-5 gizmo:lg:px-1 gizmo:xl:px-5 md:max-w-5xl }';
}
}
// Find the parent div first
const parentDivs = document.querySelectorAll('div.p-4.justify-center.text-base.md\\:gap-6.md\\:py-6.m-auto');