Skip to content

Instantly share code, notes, and snippets.

View NoraCodes's full-sized avatar
🦀
rusting away

Leonora Tindall NoraCodes

🦀
rusting away
View GitHub Profile
@NoraCodes
NoraCodes / eng_draft_2.md
Created April 20, 2024 22:30
Second draft of "Embers and Grease".

Embers and Grease

A story of desperate adventure, told over campfires and bedrolls. To play this game, you need at least two people, a d20, a d12, a d6, and a d4, and a way to take notes. There is no gamerunner or dungeon master; each player plays an adventurer.

Gameplay

Each night, your characters return from a day of adventuring to their makeshift camp in the wilderness. The players all roll to see what happened that day and work together to tell a story about it. Then, they prepare for the next day of adventuring, and forge relationships that might keep them alive.

Characters

Each player plays a single character. Before assigning any stats, you need to know three things:

  • Where are they from? This doesn't have to be a specific place, though it can be, if you're playing characters in an existing setting. It could be a religious order, a social position, or even a relationship or family - either one that has ended or broken apart, or one to which the character is planning to return.
  • Why are they
@NoraCodes
NoraCodes / circles.ps
Created October 10, 2023 02:43
Draw overlapping circles in PostScript
%!PS
/inch {72 mul} def
/pagewidth { currentpagedevice /PageSize get 0 get } def
/pageheight { currentpagedevice /PageSize get 1 get } def
/cSp { 0.66 inch } def
/cRp { 6 } def
cRp {
cRp {
@NoraCodes
NoraCodes / delchosts.sh
Created June 6, 2023 01:20
Script to delete your chosts (Cohost posts) one page at a time
# You have to go into devtools and pull out your Cookie: header including the part that says Cookie:
# and replace YOUR COOKIE HEADER with that
# and replace YOUR PROJECT NAME in two places
for item in $(curl https://cohost.org/api/v1/project/YOUR PROJECT NAME/posts | jq ".items[] | objects | .postId"); do
curl 'https://cohost.org/api/v1/trpc/posts.delete?batch=1' \
-X POST -H 'content-type: application/json' \
-H 'Origin: https://cohost.org' \
-H 'YOUR COOKIE HEADER' \
--data-raw \{\"0\":\{\"projectHandle\":\"YOUR PROJECT NAME\",\"postId\":$item\}\}
done
@NoraCodes
NoraCodes / rh.svg
Last active January 18, 2022 18:03
How do I get turn-by-turn directions on my device?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NoraCodes
NoraCodes / lib.rs
Created January 10, 2022 21:26
SeaHash investigation - why is Fasthash's implementation weird?
use fasthash; // 0.4
use seahash; // 4
use std::hash::Hasher;
// FastHash seeds
const SEAHASH_SK0: u64 = 0xe7b0c93ca8525013;
const SEAHASH_SK1: u64 = 0x011d02b854ae8182;
const SEAHASH_SK2: u64 = 0x7bcc5cf9c39cec76;
const SEAHASH_SK3: u64 = 0xfa336285d102d083;
@NoraCodes
NoraCodes / output.txt
Created May 14, 2021 21:20
Output from antisamples ambiguous-path test
antisamples nora/samples-2018 % TESTNAME=ambiguous-path cargo test --test runtests -- --nocapture
Finished test [unoptimized + debuginfo] target(s) in 0.02s
Running target/debug/deps/runtests-dd41841cefb91125
running 1 test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 0.03s
@NoraCodes
NoraCodes / matsobco.py
Created May 7, 2021 18:40
Melodies from the Area of the Triangle Swept Out by Bodies on Circular Orbits
import matplotlib.pyplot as plt
import math
# Radii of the bodies.
RAD0 = 7
RAD1 = 11
RAD2 = 15
# How many cycles to compute.
CYC = 1
@NoraCodes
NoraCodes / amt2config.sh
Last active July 28, 2021 19:42
Apple Magic Touchpad 2 configuration script
#!/usr/bin/env bash
# XInput/Synclient settings for Apple Magic Touchpad 2
# AGPL v3.0 or greater at your option
# (C) Leonora Tindall 2021
# Based on a Reddit post by /u/fr3lld
# and a very helpful AskUbuntu response by Jamie Scott
# Place this somewhere, set it as executable, and place the filename
# in in ~/.xinitrc
set -e
"""
## Sol DrumBud v0.1 ##
## Leonora Tindall <nora@nora.codes> ##
## Licensed GPLv.3 ##
A configurable drum trigger helper for Sol.
Use it to trigger 8 more drums from the Beatstep Pro, or trigger your complex
Boolean logic rhythms from 8 more directions.
Provides 8 percussion triggers on the Sol's outputs.
@NoraCodes
NoraCodes / sol_seqpal.py
Last active August 29, 2021 17:38
A sequencer helper firmware for the Sol MIDI to CV converter module from Winterbloom
"""
## Sol Seqpal v0.4.1 ##
## Leonora Tindall <nora@nora.codes> ##
## Licensed GPLv.3 ##
A configurable sequencer helper for the Sol.
Defaults to:
3 CV/Gate channels on a/1, b/2, and c/3,
plus two percussion channels on 4 and d (abused as a trigger)