Skip to content

Instantly share code, notes, and snippets.

View tearingItUp786's full-sized avatar
๐Ÿ˜Š
feeling great

Taranveer (Taran) Bains tearingItUp786

๐Ÿ˜Š
feeling great
View GitHub Profile
// Name: Highlight Code for ConvertKit (Dark Theme)
// Description: Highlight code and copy formatted HTML for ConvertKit emails with a dark theme
import Prism from "prismjs";
import { JSDOM } from "jsdom";
import "prismjs/components/prism-typescript.js";
const language = await arg("What language is this code in?", [
"tsx",
"jsx",
"CSS",
// Name: TIL for Newsletter
// Author: Taran "tearing it up" Bains
// GitHub: @tearingitup786
import "@johnlindquist/kit"; // ScriptKit imports
// Function to parse and return start and end of the month to filter content
function getDateRange(dateString) {
const startDate = new Date(dateString);
startDate.setDate(1);
// Name: TIL for Newsletter
// Author: Taran "tearing it up" Bains
// GitHub: @tearingitup786
import "@johnlindquist/kit"; // ScriptKit imports
// Function to parse and return start and end of the month to filter content
function getDateRange(dateString) {
const startDate = new Date(dateString);
startDate.setDate(1);
// Name: Whatsapp Babe A Late Message
// Description: Send your babe a whatsapp templated mesage to let em know you're running late!
// Author: Taran "tearing it up" Bains
// GitHub: @tearingitup786
// Schedule: 0 14 * * *
import "@johnlindquist/kit"; // ScriptKit imports
// Import Twilio SDK
const twilio = await npm("twilio");
// Name: Whatsapp Babe A Late Message
// Description: Send your babe a whatsapp templated mesage to let em know you're running late!
// Author: Taran "tearing it up" Bains
// GitHub: @tearingitup786
// Schedule: 0 14 * * *
import "@johnlindquist/kit"; // ScriptKit imports
// Import Twilio SDK
const twilio = await npm("twilio");
// Name: Whatsapp Babe A Late Message
// Description: Send your babe a whatsapp templated mesage to let em know you're running late!
// Author: Taran "tearing it up" Bains
// GitHub: @tearingitup786
// Schedule: 0 14 * * *
import "@johnlindquist/kit"; // ScriptKit imports
// Import Twilio SDK
const twilio = await npm("twilio");
// Name: Chrome bookmarks (with folder support)
// Author: Taran "tearing it up" Bains
// Description: Navigate your chrome bookmarks (even if they are in folders)!
// GitHub: @tearingitup786
import "@johnlindquist/kit";
// Reading the Chrome bookmarks file from the user's system
// Maybe allow for a choice of different browsers?
let bookmarks = await readFile(
// Name: Chrome bookmarks (with folder support)
// Author: Taran "tearing it up" Bains
// Description: Navigate your chrome bookmarks (even if they are in folders)!
// GitHub:
import "@johnlindquist/kit";
// Reading the Chrome bookmarks file from the user's system
// Maybe allow for a choice of different browsers?
let bookmarks = await readFile(
// Name: Chrome bookmarks (with folder support)
// Author: Taran "tearing it up" Bains
// Description: Navigate your chrome bookmarks (even if they are in folders)!
// GitHub:
import "@johnlindquist/kit";
// Reading the Chrome bookmarks file from the user's system
// Maybe allow for a choice of different browsers?
let bookmarks = await readFile(
// Name: Chrome bookmarks (with folder support)
// Author: Taran "tearing it up" Bains
// Description: Navigate your chrome bookmarks (even if they are in folders)!
// GitHub: @tearingitup786
import "@johnlindquist/kit";
// Reading the Chrome bookmarks file from the user's system
// Maybe allow for a choice of different browsers?
let bookmarks = await readFile(