With this gist, you can test multiple functions at a time. Functions are always loaded on-demand, so they're always up-to-date. TypeScript functions are supported out-of-the-box.
pnpm install esbuild -D
// ==UserScript== | |
// @name YouTube Enhanced Interaction | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Enhanced click handling for YouTube recommendations | |
// @author You | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
This gist is a further condensed version of https://svelte.dev/llms-small.txt from https://svelte.dev/docs/llms
These sections were removed to optimize the context window. Each section was deemed non-critical for MVP purposes or its use cases were deemed too niche. When developing a brownfield Svelte app, many of these sections should not be removed.
SELECT DISTINCT | |
d.deptype, | |
from_table.relname AS classid, | |
COALESCE(from_class.relname, from_type.typname, from_proc.proname) AS objid, | |
from_attr.attname AS objsubid, | |
to_table.relname AS refclassid, | |
COALESCE(to_class.relname, to_type.typname, to_proc.proname, to_ext.extname, to_con.conname) AS refobjid, | |
to_attr.attname AS refobjsubid |
import { withCapacity } from 'radashi' | |
export function keyedCapacity<TKey, TResult>(capacity: number) { | |
const queue = withCapacity(capacity) | |
const jobs = new Map<TKey, Promise<TResult>>() | |
return { | |
keys: (): IterableIterator<TKey> => jobs.keys(), | |
get: (key: TKey): Promise<TResult> | undefined => jobs.get(key), | |
run(key: TKey, job: () => Promise<TResult>): Promise<TResult> { |
/** | |
* Merge multiple generators into a single generator. | |
*/ | |
function mergeGenerators<T>(generators: AsyncGenerator<T>[]): AsyncGenerator<T> | |
/** | |
* Merge multiple generators into a single generator. Whenever a generator | |
* yields, the `{done, value}` object is passed to `mapResult` to transform the | |
* value that will be yielded. |
/* | |
* API struct for a table AM. Note this must be allocated in a | |
* server-lifetime manner, typically as a static const struct, which then gets | |
* returned by FormData_pg_am.amhandler. | |
* | |
* In most cases it's not appropriate to call the callbacks directly, use the | |
* table_* wrapper functions instead. | |
* | |
* GetTableAmRoutine() asserts that required callbacks are filled in, remember | |
* to update when adding a callback. |
export type Permutations<T, TInitial = T> = T extends infer TSingle | |
? | |
| [TSingle] | |
| (Permutations<Exclude<TInitial, TSingle>> extends infer TPermutation | |
? TPermutation extends any[] | |
? [T | TPermutation[number]] | |
: never | |
: never) | |
: never |
import { FileSystemHost, RuntimeDirEntry } from '@ts-morph/common' | |
class MemfsFileSystemHost implements FileSystemHost { | |
constructor(private readonly root: string) {} | |
isCaseSensitive(): boolean { | |
return true | |
} | |
readDirSync(dirPath: string): RuntimeDirEntry[] { |