Skip to content

Instantly share code, notes, and snippets.

View tkphd's full-sized avatar
🏳️‍🌈

Trevor Keller tkphd

🏳️‍🌈
View GitHub Profile
@tkphd
tkphd / the-quiet-year.py
Created January 22, 2023 23:19
Random card generator for The Quiet Year
#!/usr/bin/python3
# -*- coding: utf-8 -*-
about = """
A random card generator for The Quiet Year, which ends when 🂮 is drawn.
"""
fleet = """
short game: remove 5 cards from each suit; drop 🃎 but keep 🂮
"""
@benrules2
benrules2 / orbits.py
Created February 10, 2017 23:19
Python RK4 orbits
import math
import random
import matplotlib.pyplot as plot
from mpl_toolkits.mplot3d import Axes3D
class point:
def __init__(self, x,y,z):
self.x = x
self.y = y
self.z = z
@rsvp
rsvp / noise.sh
Last active September 20, 2024 17:37
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)