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 { h, spec } from "forest"; | |
export default function Icon(props = {}) { | |
h("svg", { | |
attr: { | |
"height": "32", | |
"width": "32", | |
"xml:space": "preserve", | |
"xmlns": "http://www.w3.org/2000/svg" | |
}, |
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
useEffect(() => { | |
const durationMs = parseDuration(duration ?? ''); | |
if (durationMs && selectedToken) { | |
const durationSeconds = new Decimal(durationMs).div(1000); | |
const speedInYocto = new Decimal(amountToStream) | |
.div(durationSeconds) | |
.toFixed(); | |
setValue('speed', speedInYocto); |
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
module.exports = { | |
forbidden: [ | |
{ | |
name: "no-pages-on-pages", | |
severity: "warn", | |
comment: "Page MUST not depends on another page.", | |
from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
}, | |
{ |
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
const phrase = ` | |
This, like a preacher, spoke Yevgeny. | |
Eyes blinded, as the salt tears choked, | |
Tatyana, breathless, uncomplaining, | |
Was listening to him as he spoke. | |
He gave his arm. Far from ecstatic, | |
With movements now called “automatic”, | |
She lent on him (nothing was said), | |
And languidly inclined her head. | |
The came back round the kitchen garden, |
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
#!/usr/bin/env node | |
import fs from "fs/promises"; | |
import path from "path"; | |
import { fileURLToPath } from "url"; | |
import { unified } from "unified"; | |
import rehypeParse from "rehype-parse"; | |
import { VFile } from "vfile"; | |
import { write } from "to-vfile"; | |
import generate from "@babel/generator"; |
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
export function WorkspacePaneTable( | |
props: WorkspacePaneProps<Workspace.WorkspaceItemHeaderTable> | |
) { | |
let [selectedId, setSelectedId] = React.useState<Data.Id | null>(null); | |
let catalog = Recoil.useRecoilValue(Data.$catalog); | |
let table = catalog.schema_tables[props.item.name]; | |
let query = React.useMemo(() => createQuery(table), [table]); | |
let panes = State.usePanesAPI(); |
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 { | |
allSettled, | |
attach, | |
createDomain, | |
createEvent, | |
createStore, | |
fork, | |
forward, | |
guard, | |
sample, |
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
World |
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
const J = [ | |
"WOONWOpcVmoQ", | |
"mrlcVSoSpa==", | |
"Esf9WPRcSa==", | |
"WPlcP8knbCku", | |
"rSoTwe8=", | |
"W7dcGrJcTq==", | |
"WPdcN8kWi8kc", | |
"zcXAW74=", | |
"WO/cGHz7W7C=", |