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 { type JSX, Suspense, createMemo, createResource, For } from 'solid-js'; | |
| export interface FreezeProps { | |
| freeze: boolean; | |
| children: JSX.Element; | |
| fallback?: JSX.Element; | |
| } | |
| type Deferred = Promise<undefined> & { r: (value: undefined) => void }; |
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 { type Accessor, createSignal, onCleanup } from 'solid-js'; | |
| interface MediaStore { | |
| /** State backing */ | |
| a: Accessor<boolean>; | |
| /** Amount of subscriptions */ | |
| n: number; | |
| /** Cleanup function */ | |
| c: () => void; | |
| } |
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 { createEffect, createRoot } from 'solid-js'; | |
| import { type StoreNode, createMutable, modifyMutable, reconcile } from 'solid-js/store'; | |
| const parse = (raw: string | null, initialValue: any) => { | |
| if (raw === null) { | |
| return initialValue; | |
| } | |
| try { | |
| const persisted = JSON.parse(raw); |
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 { | |
| createContext, | |
| createEffect, | |
| createMemo, | |
| createSignal, | |
| onCleanup, | |
| onMount, | |
| useContext, | |
| } from 'solid-js'; | |
| import type { JSX } from 'solid-js/jsx-runtime'; |
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 FOLLOWING = 4; | |
| const CONTAINED_BY = 16; | |
| const PRECEDING = 2; | |
| const CONTAINS = 8; | |
| export const collateNode = (a: Node, b: Node) => { | |
| const position = a.compareDocumentPosition(b); | |
| if (position & (FOLLOWING | CONTAINED_BY)) { |
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
| <svelte:options runes /> | |
| <script> | |
| import { store, increment } from './reactive.js'; | |
| const deep = store.deep; | |
| const remaining = $derived(store.items.filter((item) => !item.done).length); | |
| function push() { | |
| store.items.push({ text: 'bar', done: false }); |
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
| export type IdleCallback = () => void; | |
| const queue: IdleCallback[] = []; | |
| let running = false; | |
| const runTasks = (deadline: IdleDeadline) => { | |
| while (deadline.timeRemaining() > 0) { | |
| const callback = queue.shift(); | |
| if (!callback) { |
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
| // TODO: make sure this doesn't run if `git diff --stat HEAD -- src/` actually returns something | |
| import * as path from 'node:path'; | |
| import { fileURLToPath } from 'node:url'; | |
| import { type PropertySignature, InterfaceDeclaration, Project, SyntaxKind } from 'ts-morph'; | |
| import { ShortIdent } from '../lib/mangler/shortident.js'; | |
| const root = path.join(fileURLToPath(import.meta.url), '../..'); |
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 { Agent } from '@intrnl/bluesky-client/agent'; | |
| import type { UnionOf } from '@intrnl/bluesky-client/atp-schema'; | |
| import { pRateLimit } from 'p-ratelimit'; | |
| const agent = new Agent({ serviceUri: 'https://bsky.social' }); | |
| const limit = pRateLimit({ concurrency: 3, interval: 1000, rate: 5 }); | |
| const getRecordId = (uri: string) => { | |
| const idx = uri.lastIndexOf('/'); |
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
| trinitymedia.ai | |
| a.vdo.ai | |
| tru.am | |
| ad.leap.app | |
| netlify-rum.netlify.app | |
| cdn.permutive.app | |
| 0f73e92f-4074-4fe3-85d3-ed3fc969859e.edge.permutive.app | |
| 6093eccf-6734-4877-ac8b-83d6d0e27b46.edge.permutive.app | |
| 68547f8f-2fd8-4ff3-9b63-51e86e2edee8.edge.permutive.app | |
| a2a5c7f9-3fa0-4182-889a-15aa61acf59b.edge.permutive.app |
NewerOlder