Skip to content

Instantly share code, notes, and snippets.

View JosXa's full-sized avatar
💙

Joscha Götzer JosXa

💙
View GitHub Profile
import "@johnlindquist/kit"
import type { Choice } from "@johnlindquist/kit"
import gis from "g-i-s"
const query = await arg("Enter image search term")
const images = await new Promise<any[]>((resolve, reject) => {
gis(query, (error, results) => {
if (error) {
reject(error)
import "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Selected bug repro",
}
await arg("", [
{ name: "A", selected: false },
{ name: "B", selected: true },
{ name: "C", selected: false },
import "@johnlindquist/kit"
import { Stagehand } from "@browserbasehq/stagehand"
metadata = {
name: "Stagehand Tests",
}
const key = await env("STAGEHAND_OPENAPI_API_KEY", { hint: "OpenAPI API Key" })
const stagehand = new Stagehand({
import "@johnlindquist/kit"
import { parseMetadata } from "@johnlindquist/kit"
metadata = {
name: "Migrate Snippets to Scriptlets",
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax",
author: "JosXa",
}
const snippetsDir = kenvPath("snippets")
import "@johnlindquist/kit"
import { parseMetadata } from "@johnlindquist/kit"
metadata = {
name: "Migrate Snippets to Scriptlets",
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax",
author: "JosXa",
}
const snippetsDir = kenvPath("snippets")
// noinspection JSDeprecatedSymbols
import "@johnlindquist/kit"
import { parseMetadata } from "@johnlindquist/kit"
metadata = {
name: "Migrate Snippets to Scriptlets",
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax",
author: "JosXa",
}
// noinspection JSDeprecatedSymbols
import "@johnlindquist/kit"
import { parseMetadata } from "@johnlindquist/kit"
metadata = {
name: "Migrate Snippets to Scriptlets",
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax",
author: "JosXa",
}

Snippets

Hello world

await template(`
import "@johnlindquist/kit"
import { startSpinner } from "@josxa/kit-utils"
import notifier from "node-notifier"
import { getKenvs } from "../../.kit"
metadata = {
name: "Sync Kenvs",
description: "git add & commit & rebase & push safely",
schedule: "0 */12 * * *", // every 12 hours
}
import "@johnlindquist/kit"
import { startSpinner } from "@josxa/kit-utils"
import notifier from "node-notifier"
import { getKenvs } from "../../.kit"
export const metadata: Metadata = {
name: "Sync Kenvs",
description: "git add & commit & rebase & push safely",
schedule: "0 */12 * * *", // every 12 hours
}