Skip to content

Instantly share code, notes, and snippets.

@sconklin
sconklin / generate.c
Created February 18, 2024 19:07 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
qsos = [
{
'satellite': 'phase4'
'mode': 'voice'
'duration': 20
'station': 'N1NLY'
}
{
'satellite': 'phase4'
'mode': 'data'
@sconklin
sconklin / keybase.md
Created January 30, 2015 16:12
Keybase proof

Keybase proof

I hereby claim:

  • I am sconklin on github.
  • I am sconklin (https://keybase.io/sconklin) on keybase.
  • I have a public key whose fingerprint is 9799 0341 B428 42C9 52C1 5A9C 6268 8FF3 3A75 8A1E

To claim this, I am signing this object: