openpgp4fpr:3057B3A23A272B93408E34C4ADFE984091983F93
This file contains hidden or 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
| // Substack versions → per-day ASCII timeline + multi-scale totals + | |
| // fractal dimension (D) + 5s-resolution "true" writing time estimate. | |
| // Paste into console on a /publish/post/{id} page. | |
| (async () => { | |
| const CHUNK_MINUTES = 5; // bucket size for DISPLAY + legacy total | |
| const START_HOUR = 8; // display window start (local) | |
| const END_HOUR = 2; // display window end (next day, local) | |
| const ACTIVE_CHAR = "━"; // writing | |
| const INACTIVE_CHAR = "·"; // idle |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| sed '1 s/^[^[]*\[/[/' "$1" | | |
| jq -r ' | |
| def sortable_date: | |
| .tweet.created_at | |
| | strptime("%a %b %d %H:%M:%S %z %Y") | |
| | mktime | |
| | . - 18000 |
OlderNewer