Skip to content

Instantly share code, notes, and snippets.

View jhadev's full-sized avatar

Josh A jhadev

View GitHub Profile
@jhadev
jhadev / Script Info NEXT DATA iOS.shortcut
Created August 2, 2023 16:15
iOS Script Info NEXT DATA
Script Info NEXT DATA iOS
@jhadev
jhadev / austin-power-outages-puppeteer.js
Last active December 14, 2023 19:13
austin-power-outages-puppeteer
const puppeteer = require("puppeteer");
async function getAustinPowerOutages(endpoint) {
try {
const res = await fetch(endpoint);
if (!res.ok) {
throw new Error(`Austin Energy ${endpoint} is not available.`);
}
const data = await res.json();
return data;