Skip to content

Instantly share code, notes, and snippets.

View TheoryOfNekomata's full-sized avatar
🎹
Practicing

Allan Crisostomo TheoryOfNekomata

🎹
Practicing
View GitHub Profile
@dogtopus
dogtopus / _sgp.md
Last active July 16, 2025 09:31
SEGA Grand Pianist related stuff

SEGA Grand Pianist

SD Card

SD card slot is on its own separate PCB connected via a 8-pin JST PH (?) jumper cable.

Tested with 2GB SD card formatted with FAT16. Cards smaller than 2GB might also work but are untested (since the smallest cards I got are 2GB).

(Official spec stated that it supports 128MB-2GB SD cards formatted with FAT16.)

@lxsmnsyc
lxsmnsyc / styletron.ts
Created March 3, 2020 09:06
Styletron SSR Setup wtih TypeScript
import { Client, Server } from 'styletron-engine-atomic';
import { DebugEngine } from 'styletron-react';
function getHydratedClass(): HTMLStyleElement[] {
const els = document.getElementsByClassName('_styletron_hydrate_');
const newEls = [];
for (let i = 0; i < els.length; i += 1) {
const el: Element = els[i];
@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages
This file has been truncated, but you can view the full file.
1 =
= 0^3 + 0^3 + 1^3
= -8^3 + -6^3 + 9^3
= -12^3 + 9^3 + 10^3
= -103^3 + 64^3 + 94^3
= -138^3 + -71^3 + 144^3
= -150^3 + 73^3 + 144^3
= -138^3 + -135^3 + 172^3
= -249^3 + 135^3 + 235^3
= -495^3 + 334^3 + 438^3
@Centrinia
Centrinia / scales.txt
Created February 16, 2019 15:55
C tonic musical scales
0 : 0:00:00 ::
6 - 6
C F# C F# C
1 : 0:00:01.750000 ::
5 - 7
C F C F C
@pashinin
pashinin / gist:f98bc62a727fb517b48baf9d443bcebb
Last active February 15, 2024 07:28
windows shit hostnames to block
# -*- mode:conf-unix -*-
### hosts win10 extra
### More info: https://github.com/crazy-max/WindowsSpyBlocker
0.0.0.0 answers.microsoft.com
0.0.0.0 apps.skype.com
0.0.0.0 az361816.vo.msecnd.net
0.0.0.0 az512334.vo.msecnd.net
0.0.0.0 cdn.content.prod.cms.msn.com
0.0.0.0 choice.microsoft.com
@alexkirsz
alexkirsz / sixth-sense.js
Created May 23, 2016 18:56
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()
@patik
patik / how-to-squash-commits-in-git.md
Last active April 8, 2026 18:17
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@felixjones
felixjones / pmx21.md
Last active May 12, 2026 12:00
PMX (Polygon Model eXtended) 2.0, 2.1 File Format Specifications

PMX (Polygon Model eXtended) 2.1

This is an English description of the .PMX file format used in Miku Miku Dance (MMD).

PMX is the successor to the .PMD format (Polygon Model Data).

This is work-in-progress! Please leave feedback in the comments.

Todo