π¨π
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 cloneArray = (arr) => ([...arr]) | |
| // OR | |
| const cloneArray = (arr) => arr.slice(0); | |
| // OR | |
| const cloneArray = (arr) => Array.from(arr); |
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: Download YouTube Video | |
| // Description: Download a video from a YouTube URL as .mp4 | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const youtubeDlExec = await npm("youtube-dl-exec"); | |
| const slugify = await npm("slugify"); | |
| const apiKey = await env("YOUTUBE_API_KEY"); |
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: NTS Live | |
| // Description: Stream NTS Live Channel 1 or 2 | |
| // Author: Vogelino, extended by Josh Davenport-Smith | |
| // Twitter: @soyvogelino | |
| // Shortcut: | |
| import "@johnlindquist/kit"; | |
| const PLAYER_HEIGHT = 76; | |
| const PLAYER_WIDTH = 205; |
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: New Jitsi Meeting URL | |
| // Description: Copies a random Jitsi Meeting URL to clipboard and offers to open it | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const { hri } = await npm("human-readable-ids"); | |
| const newMeetingSlug = hri.random(); |
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: Search for YouTube Videos | |
| // Description: Prompts for a search string and lists all youtube videos found (with preview) | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| // Shortcut: opt y | |
| import "@johnlindquist/kit"; | |
| const apiKey = await env("YOUTUBE_API_KEY"); | |
| const previewAudioOn = |
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: Todoist | |
| // Description: Create and browse your Todoist Tasks | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const { TodoistApi } = await npm("@doist/todoist-api-typescript"); | |
| const { formatRelative } = await npm("date-fns"); | |
| interface ProjectType { |
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: Unsplash | |
| // Description: Search unsplash for the perfect image to download | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const { createApi } = await npm("unsplash-js"); | |
| const accessKey = await env( | |
| "UNSPLASH_ACCESS_KEY", |
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 Tabler Icons | |
| // Description: Copies a Tabler Icon from tabler open-sourced repository. | |
| // Author: Lucas Vogel | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const iconsPath = "https://tabler-icons.io/icons.json"; | |
| let files = []; |
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: Change case of selected text | |
| // Description: Choose a transformation method (eg. camelCase) to transform the selected text in-place (Or some text input) | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const changeCase = await npm("change-case"); | |
| let text = await getSelectedText(); |
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: GitHub Repos | |
| // Description: List GitHub repositories and perform actions on them | |
| // Author: Vogelino | |
| // Twitter: @soyvogelino | |
| import "@johnlindquist/kit"; | |
| const { Octokit } = await npm("octokit"); | |
| const shodwon = await npm("showdown"); | |
| const converter = new shodwon.Converter({ |