This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--sand1: hsl(50, 20%, 99%); | |
--sand2: hsl(60, 7.7%, 97.5%); | |
--sand3: hsl(59, 6.5%, 95.1%); | |
--sand4: hsl(58, 6.1%, 92.9%); | |
--sand5: hsl(57, 6%, 90.7%); | |
--sand6: hsl(56, 5.9%, 88.4%); | |
--sand7: hsl(55, 5.9%, 85.2%); | |
--sand8: hsl(51, 6%, 77.1%); | |
--sand9: hsl(50, 2%, 55.7%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
umask 077 | |
# File extension for the notes | |
note_ext="md" | |
fzf_opts="--height 50%" | |
# Preview script part of FZF.vim. Defaults to something else if not present (but | |
# not as fancy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep-with-countdown() { | |
secs=$1 | |
while [ $secs -gt 0 ]; do | |
printf "\rsleep: $secs\033[0K" | |
sleep 1 | |
: $((secs--)) | |
done | |
printf "\n" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
ReadMyToots.py - Download the toots you wrote, in chronological order. | |
Author: BobC - https://mastodon.hasameli.com/@BobC | |
License: "CC BY-NC-SA 4.0" https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
Usage: python ReadMyToots.py [UserName InstanceName LoginEmail Password]+ | |
Parameters: UserName - Your handle on this instance (no '@') |