Skip to content

Instantly share code, notes, and snippets.

View jasondyoungberg's full-sized avatar

Jason Youngberg jasondyoungberg

  • Idaho, United States
View GitHub Profile
@jasondyoungberg
jasondyoungberg / main.rs
Created November 23, 2024 18:38
tc add optimizer
use std::process::exit;
#[derive(Clone, Copy, Debug)]
struct Gate {
in1: usize,
in2: usize,
kind: GateKind
}
impl Gate {
fn all(n: usize) -> impl Iterator<Item = Self> {
@jasondyoungberg
jasondyoungberg / vtolvr_map.py
Created December 13, 2023 03:07
VTOL VR map generator
# This program generates a VTOL VR map from real world elevation data
# data provided by https://www.mapzen.com/blog/elevation/
# Edit these settings to customize the map
# ID of the map
map_id = "olympic_national_park"
# What to generate at the edge of the map
# "Water", "Hills", "Coast"
map_edge = "Coast"
@jasondyoungberg
jasondyoungberg / palette.txt
Created April 13, 2022 19:34
Scripts for r/place 2022 data
#6d001a #be0039 #ff4500 #ffa800
#ffd635 #fff8b8 #00a368 #00cc78
#7eed56 #00756f #009eaa #00ccc0
#2450a4 #3690ea #51e9f4 #493ac1
#6a5cff #94b3ff #811e9f #b44ac0
#e4abff #de107f #ff3881 #ff99aa
#6d482f #9c6926 #ffb470 #000000
#515252 #898d90 #d4d7d9 #ffffff