Skip to content

Instantly share code, notes, and snippets.

View alexeiaccio's full-sized avatar
🐋
Nope

Alexei Accio alexeiaccio

🐋
Nope
View GitHub Profile
@diegohaz
diegohaz / ariakit-styles.md
Last active March 29, 2025 13:56
Ariakit Styles
@kettanaito
kettanaito / Dockerfile
Last active January 29, 2025 10:33
Puppeteer in 🐋 Docker
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.
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active October 25, 2025 18:51
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
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
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;
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/shubhaankar/"
]
},
@mozzius
mozzius / sad-path.ts
Created October 18, 2024 21:00
Bluesky video upload - indirect upload
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:")!,
@mozzius
mozzius / happy-path.ts
Created October 18, 2024 20:48
Bluesky video upload - direct upload
import {
AppBskyEmbedVideo,
AppBskyVideoDefs,
AtpAgent,
BlobRef,
} from "npm:@atproto/api";
const userAgent = new AtpAgent({
service: prompt("Service URL (default: https://bsky.social):") ||
"https://bsky.social",
import { assign, setup } from "xstate";
type Context = {
chunks: Blob[];
mediaRecorder?: MediaRecorder;
submit: (contents: { file: File }) => void;
};
type Events =
| {
@OrionReed
OrionReed / console2.ts
Last active June 28, 2024 17:33
Log images or pixels to the console.
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;',
@JLarky
JLarky / README.md
Created June 5, 2024 06:18
Is it possible to apply CSS transitions inline? Yes