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 python3 | |
| import json | |
| import math | |
| import os | |
| import requests | |
| from bs4 import BeautifulSoup | |
| # Function to calculate the distance between two latitude/longitude points |
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 nix-shell | |
| #!nix-shell -p curl fd pdftk | |
| MASECHTA=${MASECHTA:-berachos} | |
| DAFIM=${DAFIM:-200} | |
| mkdir -p "$MASECHTA" | |
| for daf in $(seq 2 "$DAFIM"); do | |
| for amud in {a..b}; do |
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
| mapkey('P', '#1Paste from clipboard', function() { | |
| // Grab the latest clipboard entry | |
| const clipboardText = Clipboard.get(); | |
| // Get all input elements on the page | |
| const inputs = $$('input, textarea'); | |
| // Check how many inputs there are | |
| if (inputs.length === 0) { | |
| alert("No input fields found."); |
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 -euo pipefail | |
| # -------------------------------------------------------------------- | |
| # Configuration | |
| # -------------------------------------------------------------------- | |
| # Directory where temporary files will be stored | |
| WORKDIR="${HOME}/garmin_map_update" | |
| mkdir -p "${WORKDIR}" |
OlderNewer