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
| #!/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({ |
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
| /** | |
| * 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) |
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
| 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); |
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
| --- | |
| 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 |
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
| --- | |
| 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 |
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
| --- | |
| 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 |
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
| #facebook ._-kb div { | |
| font-family: Comic Sans MS; | |
| font-size: 100px; | |
| } |
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
| --- | |
| 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 |
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
| --- | |
| 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 |
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
| --- | |
| 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 |
NewerOlder