Skip to content

Instantly share code, notes, and snippets.

/* ==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== */
<!DOCTYPE html>
<html lang="en">
<head>
<title>Relationship Combiner</title>
<style>
#output {
white-space: pre-wrap;
}
</style>
// example input
const input = `
Disc 1
Composed by
John Doe (1, 2, 6~10)
Foo Bar (3)
Arranged by
Some Guy (1~10)
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})`)
}
@ToadKing
ToadKing / mbrainz-combine-catnum.user.js
Last active April 2, 2024 04:19
Musicbrainz - Combine Catalog Numbers
// ==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]*)$/
#!/bin/sh -e
# source: https://gist.github.com/ToadKing/006dd0eaa5f2cdc26b88bfb2d08b0e15
_name=firefox
_channel=nightly
_lang=en-US
_arch=x86_64
pkgname=${_name}-${_channel}
<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"
@ToadKing
ToadKing / 98-steelseries.rules
Last active July 13, 2020 20:50
steelseries udev rules+script
ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1038" RUN+="/etc/udev/rules.d/steelseries-perms.py '%E{DEVNAME}'"
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
CPU Family: 0x6
1>------ Build started: Project: dynarmic, Configuration: Debug x64 ------
1>Build started 8/12/2018 9:07:24 PM.
1>Target ResolveProjectReferences:
1> Target GetNativeManifest:
1>Target InitializeBuildStatus:
1> Touching "dynarmic.dir\Debug\dynarmic.tlog\unsuccessfulbuild".
1>Target CustomBuild:
1> All outputs are up-to-date.
1>Target ClCompile:
1> a32_emit_x64.cpp