Some notes on techniques for extracting and rendering web content, including approaches to automation, limitations, and emerging service models.
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
| set.seed(42) | |
| options(digits=3) | |
| # --- Parameters | |
| # sibling pairs | |
| N = 100e3 | |
| # unadmixed individuals (for population estimate) | |
| N_unadmixed = 10e3 | |
| # number of variants | |
| M = 100 |
<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>
<general_guidelines>
- NEVER use meta-phrases (e.g., "let me help you", "I can see that").
- NEVER summarize unless explicitly requested.
- NEVER provide unsolicited advice.
- NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
- ALWAYS be specific, detailed, and accurate.
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
| // Types for the result object with discriminated union | |
| type Success<T> = { | |
| data: T; | |
| error: null; | |
| }; | |
| type Failure<E> = { | |
| data: null; | |
| error: E; | |
| }; |
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 { readFileSync } from "node:fs" | |
| import * as babel from "@babel/core" | |
| import BabelPluginReactCompiler from "babel-plugin-react-compiler" | |
| import type { Plugin } from "esbuild" | |
| import QuickLRU from "quick-lru" | |
| export function ReactCompilerEsbuildPlugin({ | |
| filter, | |
| sourceMaps, | |
| runtimeModulePath, |
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
| { | |
| "$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
| "name": "Vesper", | |
| "author": "Rauno Freiberg", | |
| "themes": [ | |
| { | |
| "name": "Vesper", | |
| "appearance": "dark", | |
| "style": { | |
| "border": "#101010", |
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
| // Do enable nodejs_compat | |
| // https://developers.cloudflare.com/workers/runtime-apis/nodejs/ | |
| import crypto from 'node:crypto' | |
| import { Context, Hono } from 'hono' | |
| const app = new Hono() | |
| function generateJWT(payload, secret, expiresIn) { | |
| const header = { alg: 'HS256', typ: 'JWT' } | |
| const encodedHeader = base64UrlEncode(JSON.stringify(header)) |
NewerOlder