Skip to content

Instantly share code, notes, and snippets.

Avatar
🌌
The universe is a big place, perhaps the biggest.

Raigo Jerva rudotriton

🌌
The universe is a big place, perhaps the biggest.
View GitHub Profile
@rudotriton
rudotriton / scriptable-calendar-widget.md
Last active May 1, 2021
Customizable iOS Calendar widget in Scriptable
View scriptable-calendar-widget.md

Scriptable Calendar Widget

scriptable calendar

For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.

View scriptable-xkcd-widget.js
const url = "https://xkcd.com/info.0.json"
const req = new Request(url)
const { img: imgUrl } = await req.loadJSON()
const imgReq = await new Request(imgUrl)
const img = await imgReq.loadImage()
// for development, displays the widget if run
const debug = false;