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
function setScoreTo(num: number) { | |
serial.writeValue("score", num) | |
if (num >= 4) { | |
win() | |
} else if (num < 0) { | |
lose() | |
} else { | |
last = rounded | |
rope = num | |
rounded = Math.round(rope) |
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 postcss from 'postcss'; | |
import { readFile } from 'node:fs/promises'; | |
// load up the shadow dom css sheet, | |
// taken from the rhds git repo | |
const content = await readFile(new URL('./rh-cta.css', import.meta.url), 'utf-8'); | |
const HOST_ARGS = /:host\((?<hostArg>[^)]*)\)/g; | |
const SLOTTED_ARGS = /::slotted\((?<slottedArg>[^)]*)\)/gm; |
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
<am-yisrael-hai> | |
<template shadowrootmode="open"> | |
<!-- @license public domain --> | |
<!-- @author bennypowers.dev --> | |
<style> | |
:host { | |
display: contents; | |
text-align: center; | |
font-size: 150%; | |
} |
OlderNewer