This file contains hidden or 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
:root { | |
--hue-shift: 0deg; | |
@include generateHSLCustomPropertiesFromColor('palette-black', #060606); | |
@include generateHSLCustomPropertiesFromColor('palette-green', #00bc8c); | |
@include generateHSLCustomPropertiesFromColor('palette-dark-grey', #313131); | |
@include generateHSLCustomPropertiesFromColor('palette-grey', #444444); | |
@include generateHSLCustomPropertiesFromColor('palette-red', #f00); | |
@include generateHSLCustomPropertiesFromColor('palette-white', #fff); | |
} |
This file contains hidden or 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
.componentWithCutCorners { | |
background-color: red; | |
clip-path: generateCornerCutPath(( | |
'borderSize': $panelBorderSize, | |
'clipSize': $panelCornerClipSize, | |
'isBorder': false, | |
'uiScale': var(--ui-scale), | |
)); | |
display: block; | |
height: 100px; |
This file contains hidden or 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 { EventSubMiddleware } from '@twurple/eventsub' | |
import Koa from 'koa' | |
import KoaRouter from 'koa-router' | |
const app = new Koa | |
const router = new KoaRouter | |
const middleware = new EventSubMiddleware('...') |
This file contains hidden or 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
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "https://schemas.fdgt.dev/PRIVMSG/generic.json", | |
"title": "PRIVMSG/generic", | |
"description": "", | |
"type": "object", | |
"properties": { | |
"command": { | |
"description": "The type of IRC command that was used to send this message.", | |
"pattern": "^(?:CLEARCHAT|CLEARMSG|GLOBALUSERSTATE|HOSTTARGET|JOIN|NICK|NOTICE|PART|PASS|PING|PONG|PRIVMSG|RECONNECT|ROOMSTATE|USERNOTICE|USERSTATE|WHISPER)$", |
This file contains hidden or 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 { useStore } from './useStore.js' | |
export function GameUI() { | |
const { | |
isPaused, | |
pause, | |
play, | |
} = useStore(state => ({ | |
isPaused: state.isPaused, | |
pause: state.pause, |
This file contains hidden or 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
{ | |
"success": 1, | |
"code": "OK", | |
"msg": "OK", | |
"data": { | |
"rowcount": 1, | |
"totalrows": 1, | |
"estimatedrows": false, | |
"pagesize": 0, | |
"pagecount": null, |
This file contains hidden or 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
{ | |
"success": 1, | |
"code": "OK", | |
"msg": "OK", | |
"data": { | |
"config": { | |
"nearPlane": 2, | |
"farPlane": 12345, | |
"stars": { | |
"useStarFading": true, |
This file contains hidden or 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
/** | |
* Add all items in an array of numbers. | |
*/ | |
function addArray(array) { | |
return array.reduce((a, b) => a + b) | |
} | |
/** | |
* Calculate total stats (keyed by category), then generate | |
* additional meta stats based on initial calculations. |
This file contains hidden or 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
const valueArrays = [ | |
[1, 2], | |
[100, 400, 700], | |
] | |
const TOTAL_COMBINATIONS = valueArrays | |
.reduce((accumulator, values, index) => { | |
if (index === 0) { | |
return values.length | |
} |
This file contains hidden or 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
[ | |
[ | |
["C3"], | |
[4, "C2", "E2", "G2"] | |
], | |
[["C3"]], | |
[["G3"]], | |
[["G3"]], | |
[ |