Skip to content

Instantly share code, notes, and snippets.

@worm-emoji
worm-emoji / test-oracle-quotes-surface.ts
Created March 2, 2026 21:18
pmapi: e2e local oracle quotes surface test script
#!/usr/bin/env bun
/* eslint-disable no-console */
import {
zPublicMarketsListResponse,
zPublicOracleResponse,
} from '@contextwtf/core/src/api/public'
import { parseArgs } from 'util'
import { z } from 'zod'
const zOracleQuote = z.object({
@worm-emoji
worm-emoji / test-public-create-market.ts
Created February 19, 2026 19:42
pmapi: local public v2 question-gen + create-market test script
/**
* Test script for public v2 question generation + market creation.
*
* Usage:
* bun run apps/pmapi/scripts/test-public-create-market.ts --question "Will ... ?"
* bun run apps/pmapi/scripts/test-public-create-market.ts --questionId <0xquestionId>
*
* Optional flags:
* --apiBase API base URL (default: http://localhost:3001/public/v2)
* --apiKey Bearer token (default: local)
@worm-emoji
worm-emoji / migrate.js
Created February 25, 2019 04:21
Migrates tumblr media folder to have file names
const fs = require("fs");
const cheerio = require("cheerio");
const moment = require("moment");
const posts = fs.readFileSync("./posts.xml");
const $ = cheerio.load(posts, { xmlMode: false });
const getNewFilename = existing => {
const id = existing.split(".")[0].split("_")[0];
const x = Number($(`#${id}`).attr("unix-timestamp"));
const time = moment.unix(x);
@worm-emoji
worm-emoji / Stylefile.yml
Created July 31, 2018 23:18
Customizations for lattice.com via StyleURL.
---
version: 1.0
domains:
- lattice.com
url_patterns:
- lattice.com/*
timestamp: '2018-07-31T23:18:11Z'
id: vFqw
redirect_url: https://lattice.com/
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@worm-emoji
worm-emoji / Stylefile.yml
Created July 29, 2018 02:42
Customizations for lukemil.es via StyleURL.
---
version: 1.0
domains:
- lukemil.es
url_patterns:
- lukemil.es/*
timestamp: '2018-07-29T02:42:24Z'
id: dlcm
redirect_url: https://lukemil.es/
shared_via: 'StyleURL – import and export CSS changes from Chrome Inspector to a Gist
@worm-emoji
worm-emoji / Stylefile.yml
Created July 29, 2018 02:40
Customizations for lukemil.es via StyleURL.
---
version: 1.0
domains:
- lukemil.es
url_patterns:
- lukemil.es/*
timestamp: '2018-07-29T02:40:43Z'
id: Ic7V
redirect_url: http://lukemil.es/
shared_via: 'StyleURL – import and export CSS changes from Chrome Inspector to a Gist
@worm-emoji
worm-emoji / 8nR_XAfiBDK.css
Created July 29, 2018 01:57
Customizations for www.facebook.com via StyleURL.
#facebook ._-kb div {
font-family: Comic Sans MS;
font-size: 100px;
}
@worm-emoji
worm-emoji / Stylefile.yml
Created July 29, 2018 00:13
Customizations for www.google.com via StyleURL.
---
version: 1.0
domains:
- www.google.com
url_patterns:
- www.google.com/*
timestamp: '2018-07-29T00:13:48Z'
id: FwEz
redirect_url: https://www.google.com/
shared_via: StyleURL – import and export CSS changes from Chrome Inspector to a Gist
@worm-emoji
worm-emoji / Stylefile.yml
Created July 27, 2018 01:27
Customizations for www.wsj.com via StyleURL.
---
version: 1.0
domains:
- www.wsj.com
url_patterns:
- www.wsj.com/*
timestamp: '2018-07-27T01:27:23Z'
id: BEcf
redirect_url: https://www.wsj.com/articles/why-do-the-biggest-companies-keep-getting-bigger-its-how-they-spend-on-tech-1532610001
shared_via: StyleURL – import and export CSS changes from Chrome Inspector to a Gist
@worm-emoji
worm-emoji / Stylefile.yml
Created July 26, 2018 23:50
Customizations for www.facebook.com via StyleURL.
---
version: 1.0
domains:
- www.facebook.com
url_patterns:
- www.facebook.com/*
timestamp: '2018-07-26T23:50:22Z'
id: 4aak
redirect_url: https://www.facebook.com/
shared_via: StyleURL – import and export CSS changes from Chrome Inspector to a Gist