Home > scrape-pages > scrape
scrape is the entrypoint for this library
Signature:
// async | |
const timeout = n => new Promise(resolve => setTimeout(resolve, n)) | |
// sync | |
const sleep = n => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, n) | |
// async | |
const scheduleAsync = startAtEpoch => async fn => { | |
const now = Date.now() | |
const millisecondsTillStartAt = startAtEpoch - now | |
await timeout(millisecondsTillStartAt) |
empty = None | |
deep = dict(a=dict(b='c')) | |
def chain_optional(func, default_value=None): | |
try: | |
return func() | |
except AttributeError: | |
return default_value | |
except TypeError: |
Home > scrape-pages > scrape
scrape is the entrypoint for this library
Signature:
Home > scrape-pages > scrape
scrape is the entrypoint for this library
Signature:
{ | |
"0 debug pnpm:scope": { | |
"selected": 1, | |
"workspacePrefix": null | |
}, | |
"1 debug pnpm": { | |
"isCaseSensitive": false, | |
"store": "/Users/andrew/.pnpm-store/2" | |
}, | |
"2 debug pnpm:package-manifest": { |
type EventsGeneric = { [eventName: string]: any }
type ServiceGeneric = { [fn: string]: (requestData: any) => any}
type FunctionsGeneric = { [fn: string]: (requestData: any) => any}
type ResolvePubbe...
Benchmarking sqlite drivers against PRAGMA journal_mode=DELETE | |
CPU | Apple M1 Max | |
Runtime | Deno 2.2.1 (aarch64-apple-darwin) | |
file:///Users/andrew.kaiser/Code/scratchwork/deno-sqlite-benchmark/bench2.ts | |
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995 | |
---------------- ----------------------------- --------------------- -------------------------- | |
group insert random data |