๐๏ธโโ๏ธ
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
// Name: switch-case | |
// Shortcut: shift control C | |
// Description: Change case of text in a sentance. | |
// Cache: true | |
import "@johnlindquist/kit" | |
let { titleCase, sentenceCase, paramCase, camelCase } = await npm("text-case"); | |
let options = { |
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
// Name: Get egghead data | |
// Keyword: egh | |
let { paramCase } = await npm("change-case"); | |
// let console.log = (str) => chalk.green`${str}` | |
// let console.warn = (str) => chalk.red`${str}` | |
// https://egghead.io/playlists/ | |
// let eggAxios = axios.create({ | |
// baseURL: 'https://egghead.io', |
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
// Name: Create Sanity Course Resource | |
// Author: Zac Jones | |
import "@johnlindquist/kit" | |
let { nanoid } = await npm("nanoid"); | |
let { GraphQLClient, gql } = await npm("graphql-request"); | |
const sanityClient = await npm("@sanity/client"); |
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
// Name: find instructor by email | |
// Author: Zac Jones | |
import "@johnlindquist/kit" | |
let baseUrl = "https://app.egghead.io/admin/blazer/queries/444-find-instructor-by-email" | |
let email = await arg("enter an email: ") | |
let safeEmail = encodeURI(email) |
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
// Name: Midjourney Prompt | |
// Description: Generate a Random Midjourney Prompt | |
// Author: John Lindquist | |
// Twitter: @johnlindquist | |
import "@johnlindquist/kit" | |
let count = parseInt( | |
await arg({ | |
placeholder: "How many prompts to generate and paste?", |
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
// Name: egh-post-lesson-transcript | |
// Author: Zac Jones | |
import "@johnlindquist/kit" | |
let baseUrl = "https://app.egghead.io/api/v1/enhanced_transcripts" | |
let lessonSlug = await arg({ | |
placeholder: "paste a lesson slug", | |
setIgnoreBlur: true |
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
let { paramCase } = await npm("change-case"); | |
// let console.log = (str) => chalk.green`${str}` | |
// let console.warn = (str) => chalk.red`${str}` | |
// https://egghead.io/playlists/ | |
// let eggAxios = axios.create({ | |
// baseURL: 'https://egghead.io', | |
// headers: {Authorization: `Bearer ${env.EGGHEAD_AUTH_TOKEN}`}, | |
// }) |
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
let { paramCase } = await npm("change-case"); | |
// let console.log = (str) => chalk.green`${str}` | |
// let console.warn = (str) => chalk.red`${str}` | |
// https://egghead.io/playlists/ | |
// let eggAxios = axios.create({ | |
// baseURL: 'https://egghead.io', | |
// headers: {Authorization: `Bearer ${env.EGGHEAD_AUTH_TOKEN}`}, | |
// }) |