Skip to content

Instantly share code, notes, and snippets.

View nicklausw's full-sized avatar

nicklausw nicklausw

  • Douglasville, GA
View GitHub Profile
@nicklausw
nicklausw / no_sbemail_nav.user.js
Created April 6, 2025 17:04
TamperMonkey script that gets rid of Homestar Runner sbemail nav bar (for old timey's sake)
// ==UserScript==
// @name No Sbemail Nav!!!
// @namespace http://tampermonkey.net/
// @version 2025-04-06
// @description I don't want no sbemail nav on my Homestar Runner!
// @author nicklausw
// @match https://homestarrunner.com/sbemails/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=homestarrunner.com
// @grant none
// ==/UserScript==
@nicklausw
nicklausw / no_footer.user.js
Created April 6, 2025 16:56
TamperMonkey script that gets rid of Homestar Runner site footer (for old timey's sake)
@nicklausw
nicklausw / purgeCSS.ts
Last active May 8, 2022 23:10
Run PurgeCSS post-build on a Next.js static site.
// run purgeCSS at build
import * as fs from "fs"
import { PurgeCSS } from "purgecss"
const filePaths = [
"./out/**/*.html",
"./out/_next/static/chunks/pages/**/*.js"
];
const cssPaths = ["./out/_next/static/css/*.css"];
@nicklausw
nicklausw / parser.cpp
Last active August 25, 2020 05:04
Basic arithmetic parser in C++ for fun.
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
// PE(MD)(AS). parentheses is handled through layers.
enum Stage { Exponent, MultDiv, AddSub };
enum Mode { Number, Variable, BeginLayer, EndLayer, Power, Addition, Subtraction, Multiplication, Division };
@nicklausw
nicklausw / egng.html
Created July 20, 2020 07:40
Extremely generic name generator, because why not?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style>body { background: black; } h1 { color: white; }</style>
<body>
<h1>extremely generic name generator</h1>
<h1 id="name">generating...</h1>
@nicklausw
nicklausw / gbhw.inc
Last active June 19, 2018 16:47
gbhw.inc for bass
//*
//* Gameboy Hardware definitions
//*
//* Based on Jones' hardware.inc
//* And based on Carsten Sorensen's ideas.
//*
//* Rev 1.1 - 15-Jul-97 : Added define check
//* Rev 1.2 - 18-Jul-97 : Added revision check macro
//* Rev 1.3 - 19-Jul-97 : Modified for RGBASM V1.05
//* Rev 1.4 - 27-Jul-97 : Modified for new subroutine prefixes
@nicklausw
nicklausw / sym2lua.lua
Created June 18, 2017 14:45
Bass symbol files convert to lua file.
#!/usr/bin/env lua
-- bass sym to lua.
assert(#arg == 2)
InFile = assert(io.open(arg[1],"r"))
OutFile = assert(io.open(arg[2],"w"))
OutFile:write("-- This was automatically generated by sym2lua.lua.\n" ..
"-- If this is in a repo, update your .gitignore.\n\n")
while true do
Line = InFile:read()
@nicklausw
nicklausw / FinalFantasyNameDisplay.lua
Last active June 5, 2017 20:09
A FCEUX Lua script that reads the character names in Final Fantasy.
-- Final Fantasy Name Display
-- By nicklausw
-- For the hell of it
-- Character map from a PPU read
CharMap = "0123456789" ..
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" ..
"abcdefghijklmnopqrstuvwxyz" ..
"',. -~!?"