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 node | |
| const request = require("request"); | |
| const cheerio = require("cheerio"); | |
| const args = process.argv.slice(2); | |
| const search = args[0]; | |
| if (!search) throw new Error("Must pass search term"); |
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
| function HelloWorld() { | |
| console.log("Hello World"); | |
| } | |
| export default HelloWorld; |
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 https://twitter.com/diegohaz/status/1560525455383461888 | |
| // by Diego Haz @diegohaz | |
| // Wait for all queueMicrotask() callbacks | |
| export function flushMicrotasks() { | |
| return act(() => Promise.resolve()); | |
| } | |
| // Wait for all requestAnimationFrame() callbacks | |
| export function nextFrame() { |
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 { | |
| AnyEventObject, | |
| BaseActionObject, | |
| StateNodeConfig, | |
| TransitionConfig, | |
| TransitionsConfig, | |
| createMachine, | |
| interpret, | |
| } from "xstate"; |
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 { describe, test, expect } from "vitest"; | |
| import { CreateLoop } from "./CreateLoop"; | |
| /** | |
| * TODO: | |
| * - add a before all hook | |
| * - add a after all hook | |
| * - add a before state set hook | |
| * - add a after state set hook | |
| * - abiity to preprocess arguments |
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 url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&display=swap"); | |
| $background: white; | |
| $color: #31405b; | |
| $fontFamily: "IBM Plex Sans", sans-serif; | |
| $red: #e63946; | |
| $orange: #f4a261; | |
| $yellow: #f1fa3b; | |
| $green: #2a9d8f; | |
| $blue: #606ef6; |
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
| rm -rf prisma/migrations | |
| echo 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;' | npx prisma db execute --stdin | |
| npx prisma migrate dev --name init |
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
| function parse(str: string) { | |
| let index = 0; | |
| return walk(str); | |
| function walk(str: string, container: any[] = []) { | |
| let collect = ""; | |
| while (index < str.length) { | |
| const char = str[index]; |
OlderNewer