Skip to content

Instantly share code, notes, and snippets.

View modality's full-sized avatar

Michael Hansen modality

View GitHub Profile
{
"origin": [
"#person# feels like he should really be #doingathing#, and #yells#.",
"#person# feels like #doingathing# is normal, and #yells#.",
"#person# feels like #doingathing# is reasonable, and #yells#.",
"#person# attempts to sell a new way of #doingathing#.",
"#person# utterly fails at #doingathing#.",
"#person# attempts #doingathing#, at great cost (#problem#)",
"#person# is only capable of #doingathing#, which leads to #problem#.",
"#person# insists on #doingathing#, which leads to #problem#.",
@modality
modality / 00_readme.md
Last active October 15, 2021 18:38
DICE SCHEME GENERATOR

The problem

I want to create random tables for roleplaying games. I have N items I want to go on the random table, and there are M optional items that could also go on that table. What are all the possible rolling schemes, using standard RPG dice, that could cover all the required items on the table, using the optional items to pad the table?

How to run this, and other notes

My solution is a breadth-first search which prints out possible dice schemes. You could modify it to return the schemes instead of printing them. There are constraints you can change at the top of the file.

Run this way:

@modality
modality / RoomThemer.cs
Created May 21, 2021 20:27 — forked from crappygraphix/RoomThemer.cs
Volume Based Randomized Themer
using UnityEngine;
using System.Collections.Generic;
using DungeonArchitect;
using DungeonArchitect.Graphs;
using DungeonArchitect.Utils;
using DungeonArchitect.Flow.Domains.Tilemap;
using DungeonArchitect.Builders.GridFlow;
/// <summary>
/// Spawns various theme override volumes around rooms and corridors.
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface ITopic {
bool IsClosed();
void Update();

Keybase proof

I hereby claim:

  • I am modality on github.
  • I am modality (https://keybase.io/modality) on keybase.
  • I have a public key ASCgqQ6jdqYoMqvuF8XVqlak-SPnnTrzgQXbbbPIYF9Awgo

To claim this, I am signing this object:

@modality
modality / 00_contents.md
Last active August 16, 2021 18:49
Cokemachineglow - Mark Abraham "Retconning" Series

The "Retconning" features on the now-defunct Cokemachineglow music zine remain some of my favorite pieces of music writing. I scoured many blogspot sites looking for RARs and ZIPs of these albums. Some I found, many eluded me.

All of these pieces were written by Mark Abraham, between 2007 and 2012.

I: Minimalism

II: Roots Reggae & Dub

III: Free Jazz & Improvisation