Skip to content

Instantly share code, notes, and snippets.

Generative Blues

This work approaches blues as a condition of persistence rather than a fixed form. Instead of composing a linear piece, it constructs a system of motif families and behavioral rules through which four voices move within a shared harmonic space over time.

Each voice operates within a constrained vocabulary of phrases. These phrases are revisited, repeated, and slowly altered through a weighted walk, favoring return over departure. Ideas are not quickly resolved; they are held, reconsidered, and reintroduced. The system allows dissonances to linger, producing subtle instabilities—beating tones, suspended relationships, and partial alignments that never fully settle. Rather than correcting these tensions, the piece remains inside them.

The acoustic palette is intentionally limited. All voices are derived from simple waveforms with stable harmonic structures, shaped through slow filtering and extended release envelopes. These constraints transform discrete note events into overlapping fiel

🌟 PCGTimer++ — A Fully Customizable, Self-Contained Synchronized PCG Spawn Countdown Timer

PCGTimer++ is a standalone HTML application that provides a synchronized countdown timer with:

  • ⏱ Accurate, drift-corrected countdown
  • 🔄 Automatic polite backend synchronization (low-load, randomized interval pings)
  • 🔊 Web-Audio alarm system (no external files required)
  • 🎨 Custom fonts, colors, glow effects, and background themes
  • ⚙️ Hidden configuration panel (press C to toggle)
  • 🚨 Acknowledge button that appears only while the alarm is active
/**
* Catch List → Reports (Map-of-Maps)
*
* Input format (single string, possibly multiple lines):
* "✨CatcherA: Species X ✨ ✨CatcherB: Species Y ✨ ✨CatcherA: Species Z ✨ ..."
*
* Output (single JSON object):
* {
* "catch_count": { "<catcher>": <#caught>, ... },
* "caught_count": { "<species>": <#caught>, ... },
#!/usr/bin/env python3
# Quick start:
# macOS/Linux — install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell): powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Run with uvx: uvx --from nltk python bongo_sentances.py --target 1000 --metric typed \
# --lm-order 4 --punct end-only --progress off
"""
Typing practice with an **NLTK POS-class language model** (letters-only, end-only punctuation).
Now with small, fast **entertainment boosts**:
@capttwinky
capttwinky / username_mangler.py
Created May 25, 2025 21:10
banned word variant generator
#!/usr/bin/env python
# coding: utf-8
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "pyleetspeak",
# "zalgo_text",
# "requests",
# "pyphen",
# "tqdm"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
import json
import os
from random import choice, gauss, sample, randint
from datetime import datetime
import re
{
"metadata": {
"name": "",
"signature": "sha256:093e4d7561eebe0a00236a799d36efc6bdc0dd00e7517505b7ab14026324aef7"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
class SignedObjectMixin(object):
@property
def signed(self):
if hasattr(self, '__sig__'):
return sign(self)
raise NotImplemented('no __sig__ found')
class InitAllMixin(object):
def __init__(self, *args, **kwargs):
for base in (c for c in self.__class__.__bases__ if c is not InitAllMixin):
base_class.__init__(self, *args, **kwargs)
class BaseClassOne(object):
spam_message = "class_spam"
def __init__(self):
self.spam_message = "instance_spam"
@capttwinky
capttwinky / safe_iterator.py
Created August 28, 2014 20:22
None safe iterators
import collections
def strict_iterator(iterable):
if not isinstance(iterable, collections.Iterable):
raise StopIteration
else:
for i in iterable:
yield i
def safe_iterator(iterable):