Skip to content

Instantly share code, notes, and snippets.

@so-okada
so-okada / count_toxiv_followers.py
Created March 4, 2026 08:40
toXiv follower count
#!/usr/bin/env python3
# Created by So Okada (so.okada@gmail.com) in collaboration with
# Anthropic's Claude AI.
"""
Count followers for all toXiv bots on mastoxiv.page.
Uses the Mastodon API (no authentication required for public lookups).
Run this on a machine that can access mastoxiv.page.
"""
import json
@so-okada
so-okada / count_bxiv_followers.py
Created March 4, 2026 08:37
bXiv follower count
#!/usr/bin/env python3
# Created by So Okada (so.okada@gmail.com) in collaboration with
# Anthropic's Claude AI.
"""
Count followers for all bXiv bots on Bluesky.
Uses the public AT Protocol API (no authentication required).
Usage:
python3 count_bxiv_followers.py
@so-okada
so-okada / gist:bef7661900edff19b56e797958699ae3
Last active March 2, 2025 14:21
Listen to Sponsor Game for Dynkin ADE Graphs
#!/usr/bin/env python3
# Graph Value Stability Game (starting from a tree)
# Listen to Sponsor Game for Dynkin ADE Graphs
# Created by So Okada so.okada@gmail.com in collaboration with
# Anthropic's Claude AI, exploring the intersection of unstable sounds
# and special graphs.
# Usage:
# % pip install numpy matplotlib pygame networkx pynput
# % python3 value-stability-game.py [options]
@so-okada
so-okada / music-ising.py
Last active February 16, 2025 01:39
This script runs Metropolis Ising model with sounds indicating magnetization and energy states. You can press C, D, E on your keyboard for playing spin probabilities.
#!/usr/bin/env python3
# This script runs Metropolis Ising model with keyboard controls (C,D,E keys)
# to modify spin flip probabilities, with sounds indicating
# magnetization and energy states.
# Created by So Okada so.okada@gmail.com in collaboration with
# Anthropic's Claude AI, exploring the intersection of statistical
# mechanics and generative music.
# usage:
# % pip install numpy matplotlib pygame pynput
@so-okada
so-okada / music-life-population.py
Last active February 15, 2025 10:56
This script runs prey-predator type life game with sounds indicated dominant ones (spheres or boxes).
#!/usr/bin/env python3
# This script runs prey-predator type life game with sounds indicated
# dominant ones (spheres or boxes).
# Created by So Okada so.okada@gmail.com in collaboration with
# Anthropic's Claude AI, exploring the intersection of cellular
# automata and generative music.
# usage:
# % pip install numpy matplotlib pygame
# % chmod +x music-life-population.py