No need for a prototype! Real deal is here: https://github.com/ToadKing/wii-u-gc-adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Musicbrainz - Combine Catalog Numbers | |
// @namespace com.toadking.mb.catalog | |
// @match https://musicbrainz.org/* | |
// @grant none | |
// @version 1.4 | |
// @author Toad King | |
// ==/UserScript== | |
const catNumRegExp = /^(.*?)(\d+)([^\d]*)$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name HIDIVE - Better Subtitle Outline/Stroke | |
@namespace com.toadking.hidive | |
@version 1.0.0 | |
@description Better subtitle outline/stroke effect on HIDIVE | |
@author Toad King | |
@preprocessor default | |
@var color strokeColor "Outline/Stroke Color" black | |
@var number strokeWidth "Outline/Stroke width" [0.15, 0, 1, 0.01, 'em'] | |
==/UserStyle== */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Relationship Combiner</title> | |
<style> | |
#output { | |
white-space: pre-wrap; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example input | |
const input = ` | |
Disc 1 | |
Composed by | |
John Doe (1, 2, 6~10) | |
Foo Bar (3) | |
Arranged by | |
Some Guy (1~10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readFileSync, writeFileSync } from 'fs' | |
async function get(url, options) { | |
const controller = new AbortController() | |
const { signal } = controller | |
const res = await fetch(url, { ...options, signal }) | |
if (!res.ok) { | |
controller.abort() | |
throw new Error(`bad request (${res.status} ${res.statusText})`) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Super messy and adapted almost exclusively from libusb-gadget loopback example | |
/* | |
* Copyright (C) 2009 Daiki Ueno <ueno@unixuser.org> | |
* This file is part of libusb-gadget. | |
* | |
* libusb-gadget is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# source: https://gist.github.com/ToadKing/006dd0eaa5f2cdc26b88bfb2d08b0e15 | |
_name=firefox | |
_channel=nightly | |
_lang=en-US | |
_arch=x86_64 | |
pkgname=${_name}-${_channel} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USB Device Descriptor | |
0x12, // bLength | |
0x01, // bDescriptorType (Device) | |
0x00, 0x02, // bcdUSB 2.00 | |
0x00, // bDeviceClass (Use class information in the Interface Descriptors) | |
0x00, // bDeviceSubClass | |
0x00, // bDeviceProtocol | |
0x40, // bMaxPacketSize0 64 | |
0x7E, 0x05, // idVendor 0x057E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wheel" ref="wheelContainer" :style="styles.wheel"> | |
<img :style="styles.ticker" | |
ref="ticker" | |
:src="settings.ticker.url"/> | |
<div id="inner-wheel"> | |
<img v-if="settings.centerImage.enabled" | |
:src="settings.centerImage.url" | |
:style="styles.centerImage" /> | |
<svg viewBox="-1 -1 2 2" | |
xmlns="http://www.w3.org/2000/svg" |
NewerOlder