Skip to content

Instantly share code, notes, and snippets.

View mmmurf's full-sized avatar

Matt Murphy mmmurf

  • San Francisco, CA
View GitHub Profile
@jsdf
jsdf / immutableJSFormatter.js
Last active May 19, 2022 10:51
Chrome devtools formatter for Immutable-js
const immutableJSFormatter = {
header(x) {
if (x && x.toJS) return ['span', {}, x.toString()];
return null;
},
hasBody(x) {
return x && x.toJS;
},
body(x) {
return ['span', {}, JSON.stringify(x.toJS(), null, 2)];
@bishboria
bishboria / springer-free-maths-books.md
Last active March 18, 2026 03:40
Springer made a bunch of books available for free, these were the direct links
@alangfiles
alangfiles / ReverseController.md
Last active May 27, 2024 02:44
Reverse NES Controller

PXL_20210925_210413232

Backwards NES Controller (or, an adventure in making)

It all started with teaching my 6 year old to play Mario. He kept running into the first enemy, then the first pit. He had to stop to jump. He was new to the game, and it's hard to be new. I had to teach him how to hold down the button to run, press the other to jump, and move all at the same time.

Early arcade games had the directional controller in the middle, with buttons on the left and right, so the player could control it which either hand. And then, as legend has it, the directional controller was moved to the left side, because most people are right-handed and would lose more games, thus bringing more quarters to those arcade fat cats.

Thus, I decided to right a great wrong in this world (at least for the original NES), and create a reverse controller!

The Circuit Board

@khalidx
khalidx / node-typescript-esm.md
Last active March 6, 2026 02:32
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json