from zoneinfo import ZoneInfo
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
# The Nightmare That Is a Reality - Arthur Koestler | |
[Source](https://www.nytimes.com/1944/01/09/archives/the-nightmare-that-is-a-reality-the-grim-stories-of-nazi-atrocities.html) | |
**There** is a dream which keeps coming back to me at almost regular | |
intervals; it is dark and I am being murdered in some kind of thicket | |
or brushwood; there is a busy road at no more than ten yards distance; | |
I scream for help but nobody hears me, the crowd walks past laughing | |
and chatting. | |
I know that a great many people share, with individual variations, |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
ACCESS_TOKEN=$(<access-token) | |
HEADER_ACCEPT="Accept: application/vnd.github.v3+json" | |
HEADER_AUTH="Authorization: token ${ACCESS_TOKEN}" | |
ORG=$1 |
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
#!/usr/bin/env bash | |
ACCESS_TOKEN=$(<access-token) | |
HEADER_AUTH="Authorization: token ${ACCESS_TOKEN}" | |
[[ ! -z "$1" ]] \ | |
&& curl --silent -H "$HEADER_AUTH" https://raw.githubusercontent.com/$1/master/README.md &> /dev/stdout \ | |
|| echo "Missing repository $1" |
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
echo | set /p="hGffy8ax5n6U" | clip | |
explorer steam://rungameid/892970 |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
PROJECT_FILE=pyproject.toml | |
# Usage: | |
# ./pyversion.sh # Show current version |
-
You can't tell where a program is going to spend its time.
- Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is.
-
Measure.
- Don't tune for speed until you've measured, and even then don't unless one part of the code overwhelms the rest.
-
Fancy algorithms are slow when n is small, and n is usually small.
- Fancy algorithms have big constants. Until you know that n is frequently going to be big, don't get fancy. (Even if n does get big, use Rule 2 first.)