Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
peterhellberg / pixel-atkinson-plasma.go
Created February 13, 2018 21:15
Atkinson dithered plasma rendered by Pixel
package main
import (
"image"
"image/color"
"image/draw"
"time"
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
@auxten
auxten / Golang Elliptic Curve benchmark.md
Last active December 22, 2021 03:41
Golang Elliptic Curve benchmark
@munificent
munificent / generate.c
Last active July 4, 2025 13:39
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