Skip to content

Instantly share code, notes, and snippets.

View DrMcCoy's full-sized avatar
Working on this and that, but also RLing

Sven Hesse DrMcCoy

Working on this and that, but also RLing
View GitHub Profile
DrMcCoy / twitter-alt-to-title.user.js
Created December 24, 2020 20:50 — forked from porglezomp/twitter-alt-to-title.user.js
Copy the alt text in tweets into the title text, so that you can see it on hover.
// ==UserScript==
// @name Twitter Alt-Text to Title-Text
// @description Copy the alt attribute of twitter images into the title attribute, so that I can see the alt text on hover.
// @version 1
// @grant none
// @include*
// ==/UserScript==
const SELECTORS = `.tweet .AdaptiveMedia-photoContainer img
, .Gallery-media img
DrMcCoy / bug
Created May 19, 2020 18:45
glm bug report glm::axisAngle()

There seems to be a problem with glm::axisAngle(), a regression brought in with commit 26b3e3ed788f5f6adcde11c5ec6a41aa100d29cd (Fixed axisAngle NaN #638).

Take this example code:

#include <cstdio>

#include "glm/vec3.hpp"
#include "glm/mat4x4.hpp"
DrMcCoy / nwn2_playerinfo_format.rst
Created February 10, 2019 23:16 — forked from Arbos/nwn2_playerinfo_format.rst
NWN2 playerinfo.bin format

NWN2 playerinfo.bin format

This file is located at each save game directory and contains the data shown in the info pane of the load and save screens.

========= =========== Type Description ========= =========== uint32 First name length

set -euxo pipefail
export UBSAN_OPTIONS="print_stacktrace=1"
export ASAN_OPTIONS="fast_unwind_on_malloc=0:detect_stack_use_after_return=1"
set -euxo pipefail
export UBSAN_OPTIONS="print_stacktrace=1"
export ASAN_OPTIONS="fast_unwind_on_malloc=0:detect_stack_use_after_return=0"
set -euxo pipefail
export CC="$CCACHE gcc-$GCC_VERSION"
# Leak in X11
# FontConfig
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
DrMcCoy /
Created January 10, 2017 21:24

Keybase proof

I hereby claim:

  • I am DrMcCoy on github.
  • I am drmccoy ( on keybase.
  • I have a public key whose fingerprint is 3144 4054 36A0 7383 352E 4A1E 749D AFFE 6619 0441

To claim this, I am signing this object:

NWN2 TRN.ASWM packet structure

Thibaut CHARLES -

This document is a mix of information:

  • I found by reverse engineering: basic structure, vertices, edged, triangles
  • Extracted from Skywing NWN2DataLib source code: everything else

My implementation can be found here, and supports parsing, serialization, mesh importation, path table & island