Skip to content

Instantly share code, notes, and snippets.

View zacjones93's full-sized avatar
๐Ÿ‹๏ธโ€โ™‚๏ธ

Zac Jones zacjones93

๐Ÿ‹๏ธโ€โ™‚๏ธ
View GitHub Profile
import "@johnlindquist/kit"
let adventInput:number[] = [
199,203,200,201,196,195,196,214,227,225,229,260,246,253,271,281,280,295,310,293,295,297,298,297,306,299,290,292,289,287,291,296,294,287,286,287,289,290,281,283,282,275,256,265,242,231,226,216,227,226,249,238,237,247,245,250,264,267,259,258,264,261,249,246,239,240,259,258,280,279,278,281,272,256,255,271,286,290,286,288,290,294,292,294,292,293,294,291,298,303,301,330,331,336,362,371,374,368,367,368,366,364,371,377,378,384,386,388,393,409,423,422,411,412,426,430,441,460,462,464,469,461,483,452,455,457,468,506,509,514,525,512,524,523,522,531,549,548,549,548,524,525,528,526,537,544,549,546,525,532,535,543,544,545,525,536,538,541,524,534,542,538,539,544,543,539,538,527,553,552,562,560,561,573,574,570,571,568,569,571,573,566,567,584,591,607,605,604,605,617,615,617,606,608,609,613,616,635,634,637,635,634,655,639,646,637,628,622,648,645,640,652,653,659,661,658,650,667,670,668,680,682,673,668,678,677,675,676,677,675,688,681,676,684,675,664,665,654,660,664,663
// Name: switch-case
// Shortcut: shift control C
// Description: Change case of text in a sentance.
import "@johnlindquist/kit"
let { titleCase, sentenceCase, paramCase, camelCase } = await npm("text-case");
let text = await getSelectedText();
// Shortcut: control+i
let { paramCase } = await npm("text-case");
let { eggheadSanityClient, createInstructorCollaborator } = await lib("sanity");
const instructorName = await arg("Enter Instructor Name: ");
const instructorSlug = paramCase(instructorName);
await createInstructorCollaborator(instructorSlug);
// Shortcut: control+i
let { paramCase } = await npm("text-case");
let key = await env("SANITY_READ_WRITE_KEY");
const eggheadSanityClient = sanityClient({
projectId: "sb1i5dlc",
dataset: "production",
token: key,
useCdn: false, // `false` if you want to ensure fresh data
// Name: Cheat Sheet
// Index: 0
import "@johnlindquist/kit"
let sheet = `
; = App Launcher
/ = File Browser
> = Terminal
< = Clipboard History
// Author: Zac Jones
// Name: Update Sanity Course Tag from Rails
import "@johnlindquist/kit"
let groq = await npm("groq")
let { nanoid } = await npm("nanoid");
let { GraphQLClient, gql } = await npm("graphql-request");
/*
// Author: Zac Jones
// Name: Update Sanity Course Tag from Rails
import "@johnlindquist/kit"
let groq = await npm("groq")
let { nanoid } = await npm("nanoid");
let { GraphQLClient, gql } = await npm("graphql-request");
/*
// Name: tana-paste-twitter
// Author: Ian Jones
import "@johnlindquist/kit";
const url = await getActiveTab("Brave");
const months = [
"January",
"February",
// Name: tana-paste-twitter
// Author: Ian Jones
import "@johnlindquist/kit";
const url = await getActiveTab("Brave");
const months = [
"January",
"February",
// Author: Zac Jones
import "@johnlindquist/kit"
let input = await arg("paste in SMTP training")
let split = input.split(/(LIFTING:)|(WORKOUT:)|(WARM UP:)|(COOL DOWN:)/).filter((v) => !!v).reduce((prev, curr, i, arr) => {
if (i % 2 === 0) {
let key = curr.split(":")