Skip to content

Instantly share code, notes, and snippets.

View noahm's full-sized avatar

Noah Manneschmidt noahm

View GitHub Profile
@noahm
noahm / changelog.md
Last active April 11, 2024 23:37
SMX song changes

SMX Song Changes

Covers re-rates and new charts added according to data available in the mobile apps.

April 11 2024

New Default Songs

These songs were formerly in a free DLC pack that required the cab owner to link the pack to a machine on the website. They are now included on all cabs by default.

  • Bad 4 My Health
@noahm
noahm / esm-package.md
Created November 21, 2022 22:37 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
type ArraysOfEachProperty<T> = {
[Property in keyof T]: Array<T[Property]>;
}
function fieldArrsToObjs<T extends {}>(arrs: ArraysOfEachProperty<T>): Array<T> {
const ret: T[] = [];
Object.entries(arrs).forEach(([key, values]) => {
(values as unknown[]).forEach((value, idx) => {
if (!ret[idx]) {
// @ts-expect-error
@noahm
noahm / README.md
Created December 3, 2021 18:23
SMX/PC quick-swap setup

img1

Here's a wide shot, cable managment with simple velcro ties.

img2

Inside the lid. Had to really cram all this in there carefully. Swapping between SMX and the PC is just a matter of pushing each of the three buttons on the switcher boxes.

@noahm
noahm / failing-tests.sh
Created August 10, 2018 17:34
Get failing test files
yarn test --json --outputFile=testResult.json
jq -r ".testResults | map(select(.status == \"failed\"))[].name" testResult.json | sort | colrm 1 `pwd | wc -c`
@noahm
noahm / newGWJ.user.css
Last active August 29, 2015 14:11
New GWJ CSS fixes (paste into a new style in the Stylish extension)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("gamerswithjobs.devcloud.acquia-sites.com") {
body {
font-size: initial;
/* Don't, don't, DON'T hard-code font size. All browsers default to 16px anyway.
Anyone changing the default will be doing so for good reason. */
}
#header #logo {
@noahm
noahm / keybase.md
Created September 30, 2014 18:18
keybase.md

Keybase proof

I hereby claim:

  • I am noahm on github.
  • I am noahm (https://keybase.io/noahm) on keybase.
  • I have a public key whose fingerprint is 0C74 EB0F 7D6A A7B5 DB92 3444 2D5F D1FC A5EA 4381

To claim this, I am signing this object:

@noahm
noahm / libc++.diff
Last active December 27, 2015 17:48
Mirrored attachment from https://code.google.com/p/google-glog/issues/detail?id=121#c3 for use with homebrew (edited for use as -p1)
Index: /src/stl_logging_unittest.cc
===================================================================
--- /src/stl_logging_unittest.cc (revision 136)
+++ /src/stl_logging_unittest.cc (working copy)
@@ -31,17 +31,20 @@
#ifdef HAVE_USING_OPERATOR
-#ifdef __GNUC__
+#include <iostream>
@noahm
noahm / GetCases.java
Created October 19, 2013 20:06
A java-based tribunal scraper. Originally written by Lecherito (originally found here: http://pastebin.com/7Sp1eJwv)
package Tribunal;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
@noahm
noahm / Program.cs
Last active December 25, 2015 21:59
for BOOEAN!
using System;
using System.Text.RegularExpressions;
class Program
{
static void Main()
{
// Input string.
const string example = "Name:\r\n\r\nEmail: jasonbateman@yahoo.com\r\n\r\nPhone: 333-343-0909\r\n\r\n";