Skip to content

Instantly share code, notes, and snippets.

View ngraham20's full-sized avatar
🏁
Beetle Racing

Nathaniel Graham ngraham20

🏁
Beetle Racing
  • Red Hat
  • Boise, ID
View GitHub Profile
@ngraham20
ngraham20 / main.go
Created March 28, 2024 22:08
Writing a custom unmarshal function for YAML in Go
package main
import (
"fmt"
"log"
"gopkg.in/yaml.v3"
)
type Blocktype uint8
@ngraham20
ngraham20 / aoe-de-mp-fix.sh
Last active March 16, 2023 01:54 — forked from reneklacan/aoe4-mp-fix.sh
Script to fix AOE Definitive Edition desync issues
#!/bin/bash
# modified to work with Mac OS' Porting Kit's installation location to attempt multiplayer fix
set -ex
AOE4_DIR="/Users/$USER/Applications/Age of Empires 3 Definitive Ed.app/Contents/SharedSupport"
AOE4_WIN_DIR=$AOE4_DIR/prefix/drive_c/windows
AOE4_WIN_SYS32_DIR=$AOE4_WIN_DIR/system32
AOE4_WIN_SYS64_DIR=$AOE4_WIN_DIR/syswow64
@ngraham20
ngraham20 / folder_links.js
Created July 30, 2021 21:47
Obsidian Templater Script to Generate Folder Links
@ngraham20
ngraham20 / ttt.c
Created September 13, 2018 20:06 — forked from MatthewSteel/ttt.c
Minimax (full tree search) tic-tac-toe AI in C
//Tic-tac-toe playing AI. Exhaustive tree-search. WTFPL
//Matthew Steel 2009, www.www.repsilat.com
#include <stdio.h>
char gridChar(int i) {
switch(i) {
case -1:
return 'X';
case 0: