Skip to content

Instantly share code, notes, and snippets.

@mzeryck
mzeryck / mz_invisible_widget.js
Last active November 14, 2025 08:10
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
/*
MIT License
Copyright (c) 2024 Maxwell Zeryck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
@apiarian
apiarian / citibike-widget.js
Last active January 3, 2022 14:47
CitiBike Status iOS Widget
function lat_lon(thing) {
return {
"lat": thing.lat || thing.latitude,
"lon": thing.lon || thing.longitude,
}
}
function distance(loc1, loc2) {
loc1 = lat_lon(loc1)
loc2 = lat_lon(loc2)
@42sol-eu
42sol-eu / convert_markdown_files_to_drafts.py
Created September 13, 2020 14:53 — forked from gcaprio/convert_markdown_files_to_drafts.py
Convert a directory of Markdown (.md) files into a JSON format for importing into the Drafts Mac app
# Usage:
# python3 convert_markdown_files_to_drafts.py <directory> > DraftsExport.draftsExport
import os, time
import json
import uuid
import sys
from datetime import datetime, timezone
output_datetime_format = '%Y-%m-%dT%H:%M:%S%Z'
@gcaprio
gcaprio / convert_markdown_files_to_drafts.py
Last active September 8, 2023 20:20
Convert a directory of Markdown (.md) files into a JSON format for importing into the Drafts Mac app
# Usage:
# python3 convert_markdown_files_to_drafts.py <directory> > DraftsExport.draftsExport
import os, time
import json
import uuid
import sys
from datetime import datetime, timezone
output_datetime_format = '%Y-%m-%dT%H:%M:%S%Z'
@ttscoff
ttscoff / Podcast.bunch
Last active March 19, 2022 15:43
Brett's Bunch.app bunch for podcasting
# Start podcasting
## Some time tracking
& workflows/Timing
- task = Podcasting
- project = Podcasting
## Do not disturb me, audio settings
(dnd on)
@atnbueno
atnbueno / click-to-delete.user.js
Last active June 12, 2025 00:57
A userscript to delete page elements when clicked twice while pressing Alt, Control, and Shift simultaneously
// ==UserScript==
// @name Click to delete
// @author Antonio Bueno
// @namespace userscripts.atnbueno.com
// @description This script deletes page elements if clicked twice while simultaneously pressing Alt, Control, and Shift
// @version 2.0
// @grant none
// ==/UserScript==
/*
@spencerwooo
spencerwooo / termiWidget.js
Last active September 18, 2025 05:20
🍋 TermiWidget - Terminal-like Widget for iOS 14, made with Scriptable.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: quote-right;
// Change these to your usernames!
const user = "spencer"
const jike = "4DDA0425-FB41-4188-89E4-952CA15E3C5E"
const telegram = "realSpencerWoo"
const github = "spencerwooo"
@zwithz
zwithz / check_my_followers_stats.js
Created August 22, 2020 00:38
A widget to visually show all my social media's followers stats by @scriptable. For more details -> https://twitter.com/zwithz1998/status/1296834411300716544
// Use @substats, a open source repo on @Github, to fetch all my social medias' stats
const url = "https://api.spencerwoo.com/substats/?source=weibo&queryKey=2028434647&source=twitter&queryKey=zwithz1998&source=jikeFollower&queryKey=e1377acb-40ed-495e-9a73-158273b4090a"
const req = new Request(url)
const json = await req.loadJSON()
const data = json.data.subsInEachSource
// Twitter
const twitterFollowers = data.twitter

Coding Garden - Currently Working On

If these notes are out of date, please let me know in the twitch chat, and I will update them!

Today:

Working on lots of random channel related things today:

  • Calendar
  • View the schedule on twitch: cdg.sh/schedule | View the calendar on google: cdg.sh/calendar | Download the calendar ics: cdg.sh/ics
@br3ndonland
br3ndonland / github-actions-notes.md
Last active September 30, 2025 19:09
Getting the Gist of GitHub Actions