Skip to content

Instantly share code, notes, and snippets.

@mataha
mataha / extract.diff
Last active May 9, 2021 04:19
Touhou Music Room 2.3.0 patch
diff --unified a/musicroom/extract.cpp b/musicroom/extract.cpp
--- a/musicroom/extract.cpp
+++ b/musicroom/extract.cpp
@@ -8,6 +8,14 @@
#include <math.h>
+#if __cplusplus > 201703L
+# include <numbers>
+ static constexpr double PI = std::numbers::pi_v<double>;

Touhou fonts

Open fonts

Web support

[Reimu Roman] [Marisa Regular] [Yuyuko Script]
@mataha
mataha / 8level-wrt150a-default.conf
Last active August 16, 2016 02:49
Default configuration file for 8level's WRT-150A router (V1.2.19122).
# 8level-wrt150a-default.conf
# Firmware version: 1.2.19122
# Username: admin
# Password: admin
NETWORK_TOOL 1
IP_URL ""
COUNT 4
PKT_SIZE 64
TIME_OUT 1000
TTL 20
@mataha
mataha / mrs-tables.markdown
Last active August 16, 2016 00:08
A brief description of standard MRS tables. If you're looking at this, you probably know what this is for.

MRS tables

First swap

[0x03, 0x05, 0x0A, 0xD2]

First table