Update: Ariakit Styles is in alpha. If you want to try it, join us on Discord (see the #news channel).
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
| FROM node:22-slim as base | |
| # Skip downloading Chromium as we are installing it manually. | |
| ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | |
| # Point Puppeteer at the manually installed executable. | |
| ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/google-chrome" | |
| # Install Google Chrome Stable and fonts | |
| # Note: this installs the necessary libs to make the browser work with Puppeteer. |
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
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
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 { randomString } from "./benchUtil.js"; | |
| import { metabench } from "./metabench.js"; | |
| export function lazyWithInternalProp<T>(getter: () => T) { | |
| return { | |
| __value: undefined as T, | |
| get value() { | |
| if (this.__value) return this.__value; | |
| const value = getter(); | |
| this.__value = value; |
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
| { | |
| "mcpServers": { | |
| "filesystem": { | |
| "command": "npx", | |
| "args": [ | |
| "-y", | |
| "@modelcontextprotocol/server-filesystem", | |
| "/Users/shubhaankar/" | |
| ] | |
| }, |
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 { AppBskyEmbedVideo, AtpAgent } from "npm:@atproto/api"; | |
| const userAgent = new AtpAgent({ | |
| service: prompt("Service URL (default: https://bsky.social):") || | |
| "https://bsky.social", | |
| }); | |
| await userAgent.login({ | |
| identifier: prompt("Handle:")!, | |
| password: prompt("Password:")!, |
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 { | |
| AppBskyEmbedVideo, | |
| AppBskyVideoDefs, | |
| AtpAgent, | |
| BlobRef, | |
| } from "npm:@atproto/api"; | |
| const userAgent = new AtpAgent({ | |
| service: prompt("Service URL (default: https://bsky.social):") || | |
| "https://bsky.social", |
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 { assign, setup } from "xstate"; | |
| type Context = { | |
| chunks: Blob[]; | |
| mediaRecorder?: MediaRecorder; | |
| submit: (contents: { file: File }) => void; | |
| }; | |
| type Events = | |
| | { |
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
| class console2 { | |
| static image(url: string, size = 100) { | |
| fetch(url) | |
| .then((res) => res.blob()) | |
| .then((blob) => { | |
| const reader = new FileReader(); | |
| reader.onloadend = () => { | |
| const dataUrl = reader.result as string; | |
| const style = [ | |
| 'font-size: 1px;', |
NewerOlder
