Skip to content

Instantly share code, notes, and snippets.

View bwrsandman's full-sized avatar

Sandy bwrsandman

  • Montreal
View GitHub Profile
@bwrsandman
bwrsandman / cwfilt.py
Created November 4, 2019 21:11 — forked from jackoalan/cwfilt.py
CodeWarrior C++ Symbol Demangler
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def demangleNode(node):
pointer = False
ref = False
const = False
unsigned = False
@bwrsandman
bwrsandman / ctr_parser.py
Last active October 17, 2021 21:58
Parser for LionHead's Black & White CTR files containing animations, hair and extra data for the hand and creatures (.hbn, cbn)
import ctypes
import itertools
from collections import OrderedDict
import pprint
from pathlib import Path
class Vec3(ctypes.Structure):
_fields_ = [
("x", ctypes.c_float),
#include <execution>
#include <benchmark/benchmark.h>
#include <entt/entity/registry.hpp>
#include <glm/vec3.hpp>
static void BM_AoS(benchmark::State& state)
{
struct Zoomer
{
@bwrsandman
bwrsandman / runblack.exe.dsm
Created October 9, 2024 04:30
retdec-decompiler --backend-no-opts runblack.exe
runblack.exe.dsm