Skip to content

Instantly share code, notes, and snippets.

View mahdi's full-sized avatar

Mahdi mahdi

View GitHub Profile
@mahdi
mahdi / covid-stats.js
Last active October 14, 2020 16:09
Scriptable App Scripts
const COUNTRY = "UK"
const API__URL = `https://corona.lmao.ninja/v2/countries/${COUNTRY}?yesterday=true&strict=true&query=`
const API__REQ = new Request(API__URL)
const API__RES = await API__REQ.loadJSON()
const TEXT__TITLE = { default: `🦠 COVID Statistics for ${COUNTRY}`, smallWidget: "🦠 COVID Stats" }
const TEXT__TOTAL_CASES = "Total Cases"
const TEXT__CASES_TODAY = "Cases Today"
const TEXT__TOTAL_DEATHS = "Total Deaths"