Skip to content

Instantly share code, notes, and snippets.

View lannonbr's full-sized avatar

Benjamin Lannon lannonbr

View GitHub Profile
@lannonbr
lannonbr / index.js
Created June 20, 2020 04:36
easymidi example w/ Launchpad Mini MK3
const easyMidi = require("easymidi");
const launchpadInput = new easyMidi.Input(
"Launchpad Mini MK3 LPMiniMK3 MIDI Out"
);
const launchpadOutput = new easyMidi.Output(
"Launchpad Mini MK3 LPMiniMK3 MIDI In"
);
@lannonbr
lannonbr / learn-with-jason-search.js
Created April 2, 2021 18:44
A Script Kit script to browse the collection of episodes on learnwithjason.dev
// Menu: Learn with Jason Search
// Description: Browse Learn With Jason Episodes
// Author: Benjamin Lannon
// Twitter: @lannonbr
let episode = await arg(`Search for an episode of Learn with Jason`, async () => {
const resp = await get('https://www.learnwithjason.dev/episodes.json')
return resp.data.episodes.map(episode => {
return {
@lannonbr
lannonbr / esm-checker-add-description.js
Created March 10, 2022 00:21
One off script for ESM Checker to add a description attribute to items in a package table
require("dotenv").config();
const fetch = require("node-fetch");
const { DynamoDBClient } = require("@aws-sdk/client-dynamodb");
const {
DynamoDBDocumentClient,
UpdateCommand,
ScanCommand,
} = require("@aws-sdk/lib-dynamodb");
const ddbClient = new DynamoDBClient();
// Name: image-resizer
import "@johnlindquist/kit"
const files = await drop("Drop folder of files to be resized here")
@lannonbr
lannonbr / tinkaton-price.js
Created February 3, 2024 15:44
ScriptKit script to track Paldean Fates TCGPlayer market price and see if it ever drops below a certain price
// Name: Tinkaton Price
import "@johnlindquist/kit";
import pokemon from "pokemontcgsdk";
pokemon.configure({ apiKey: process.env["POKEMON_TCG_API_TOKEN"] });
const cardId = "sv4pt5-167";
const belowPrice = 3;