Skip to content

Instantly share code, notes, and snippets.

View efortner's full-sized avatar

Ethan Fortner efortner

View GitHub Profile
@efortner
efortner / network-v2.ts
Created November 14, 2025 01:35
A more feature-rich network simulator
/*
Example Output:
Node 0 received a message from an invalid sender at address 10
Node 6 received a message from an invalid sender at address 1
Node 3 cannot send messages because it does not have access to the network
Added node 4 to the network
Node 5 cannot send messages because it does not have access to the network
Removed node 6 from the network
Node 8 cannot send messages because it does not have access to the network
@efortner
efortner / network.ts
Created November 13, 2025 21:57
Network Simulator (v1)
/*
- Network of nodes === devices
- Devices can join the network by going to an entry node and asking to join
- Devices can communicate to all other devices once within the network via message
- Devices can drop out of the network, return, then see messages that were given to them while they were gone
- Messages are raw bytes sent between devices
Non-functional requirements:
- Up to 1000 devices
@efortner
efortner / README.md
Created May 25, 2025 21:41
D&D 5e System Reference Document Monsters

D&D 5e System Reference Document Monsters

Description

This re-exports tkfu's srd_5e_monsters.json Gist into a more machine-readable format. This is slightly lossy from the original scrape as HTML tags have been scrubbed and some small details may be missing.

Source

The latest version of this file is available here. Attack rolls were extracted using Meta Llama 4 Scout through Ollama.

Interfaces

TypeScript interfaces for both the original and re-exported files are here.