Skip to content

Instantly share code, notes, and snippets.

View freem's full-sized avatar
⛏️
work continues

AJ Kelly freem

⛏️
work continues
View GitHub Profile
@iamgreaser
iamgreaser / thps-format-psx.md
Last active August 13, 2022 23:30
`*.psx` - Apocalypse / THPS / Spiderman / whatever model format

*.psx - Apocalypse / THPS / Spiderman / whatever model format

Documented by GreaseMonkey

Document version v2

I release this document into the public domain.

This information aims to cover the format used as per the PS1 and PC versions of THPS2.

//; "Super Keftendo" 256-byte SNES intro source code
//; by Revenant
//; http://www.pouet.net/prod.php?which=70163
//; This is an attempt at implementing the "Kefrens bars" effect on the SNES, using less than
//; 256 bytes of ROM. The technique used here is to set up a 256-color line buffer using
//; Mode 7, then rendering a few pixels directly to CGRAM every scanline and resetting the
//; Y-scroll position to display the same buffer on every visible scanline as it is repeatedly
//; rendered to. Some more information about specific size optimizations are detailed later.
@nathan-osman
nathan-osman / win32.go
Last active March 27, 2025 21:00
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@TurbulentEddie
TurbulentEddie / nes_open_random_mode.lua
Created January 31, 2016 06:14
NES Open Random Mode
-- NES Open Random Mode
-- Written by Turbulent Eddie
----------------------------
------- Set options --------
----------------------------
randomize_aim = false; -- randomize aiming cursor
randomize_wind_speed = true; -- randomize wind speed
randomize_wind_dir = true; -- randomize wind direction
@fo-fo
fo-fo / nes-hardware-sprite-visualizer.lua
Created September 15, 2015 14:44
Lua script for NES hardware sprite visualization in BizHawk
-- NES Hardware Sprite Visualizer (for BizHawk)
-- v01
-- by thefox <[email protected]> 2015-09-15
-- NOTE: Requires NesHawk core
-------------------------------------------------------------------------------
-- Memory domains on NES:
-- WRAM, CHR, CIRAM (nametables), PRG ROM, PALRAM, OAM, System Bus, RAM
@Citillara
Citillara / kb-uninstall.bat
Last active January 17, 2024 12:26
Windows 7 updates to remove to prevent telemetry collection. Disables automatic upgrade to Windows 10
:: Removes most telemetry/data collection/potentially unwanted behavior from Windows 7
:: Disables the automatic download of Windows 10
:: Note : be careful to keep KB in descending order
:: Comment that line to restore prompts for uninstall/reboot
:: Thanks to https://gist.github.com/geoffroyjabouley
set WUSA_OPTIONS=/quiet /norestart
:: Removes Windows 7-8.1 telemetry (part 1)
wusa %WUSA_OPTIONS% /uninstall /kb:3080149
@ocornut
ocornut / (Archived) imgui_memory_editor.h
Last active August 28, 2024 05:01
Mini memory editor for dear imgui (to embed in your game/tools)
// Mini memory editor for Dear ImGui (to embed in your game/tools)
// Animated GIF: https://twitter.com/ocornut/status/894242704317530112
// THE MEMORY EDITOR CODE HAS MOVED TO GIT:
// https://github.com/ocornut/imgui_club/tree/master/imgui_memory_editor
// Click "Revisions" on the Gist to see old version.
@axefrog
axefrog / cube.cs
Last active June 20, 2018 16:04
A textured cube using SharpDX
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using SharpDX;
using SharpDX.D3DCompiler;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
using SharpDX.DXGI;
using SharpDX.Windows;
@Midiman
Midiman / Main.cpp
Last active August 29, 2015 14:07
Naive Pango Font Renderer
#include <iostream>
#include <vector>
#include <string>
#include <stdexcept>
#include <clocale>
#include <cstring>
#include <cwchar>
#include <cmath>
#include <cstdio>
@shakesoda
shakesoda / chord.lua
Created September 11, 2014 04:18
axis + face button -> letters. the guts of a controller keyboard.
function gate(axis, num)
local function wrap(x)
return math.fmod(x, math.pi * 2)
end
if math.abs(axis.x) < 0.1 and math.abs(axis.y) < 0.1 then
return num + 1
end
local angle = math.atan2(axis.y, axis.x) -- in radians