import { Signal as WebSignal } from 'signal-polyfill'; | |
export type Accessor<T> = () => T; | |
export type Setter<in out T> = { | |
<U extends T>(...args: undefined extends T ? [] : [value: (prev: T) => U]): undefined extends T | |
? undefined | |
: U; | |
<U extends T>(value: (prev: T) => U): U; | |
<U extends T>(value: Exclude<U, Function>): U; | |
<U extends T>(value: Exclude<U, Function> | ((prev: T) => U)): U; |
/* | |
JSON literal verification in TypeScript type system (version 3.1 for workgroups) | |
now powerd by tail recursion (you can blame @ackwell for telling me to and | |
@s5bug for doing it) | |
*/ | |
type HEX_CHARS = | |
| "0" | |
| "1" | |
| "2" |
#!/bin/sh | |
cage -- bash -c 'wlr-randr --output X11-1 --custom-mode 1280x800; sleep 1; sudo /usr/local/bin/waydroid-helper & waydroid show-full-ui' |
As of 1.19.2-2.0.1.0 BYG, BYG now depends on Corgilib. This library offers a new world gen feature for creating custom trees from NBT files.
Features include but not are limited to:
- Allows to build trees with trunk & canopy structure NBT parts.
- Allows the use of vanilla & modded tree decorators. These include but are not limited to:
- Vines
TJA is a file format created for Taiko simulators to have playable charts. It contains the metadata and the notation for all of the song's difficulty levels. "WAVE:" in the file points to an external audio file that should be in the same directory as the TJA.
This page covers TJA support in taiko-web, but may apply to other simulators as well.
TJA file is a plain text file that can be encoded as either UTF-8 with BOM or as Shift-JIS. The extension is ".tja". The container format for the audio file does not matter as long as it is supported in the simulator. If the TJA file is hosted on taiko-web, the filename should be "main.tja" for the TJA file and "main.ogg" for the audio file.
Comments can be inserted at any point by starting them with //
, comment will continue until the end of that line.
// ==UserScript== | |
// @name Toggle Discord OAuth Scopes | |
// @version 0.2 | |
// @description Toggle Discord OAuth scopes by clicking them on the auth screen | |
// @author Ben Richeson (github.com/benricheson101) | |
// @match https://discord.com/oauth2/authorize?* | |
// @match https://*.discord.com/oauth2/authorize?* | |
// @match https://discord.com/channels/* | |
// @match https://*.discord.com/channels/* | |
// ==/UserScript== |