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
| #!/bin/bash | |
| compose_post() { | |
| local temp_file=$(mktemp) | |
| local char_limit=300 | |
| # Create initial content with placeholder and alt text for reference | |
| cat > "$temp_file" << EOF | |
| $placeholder |
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 argparse | |
| from textwrap import wrap | |
| def main(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("file", help="File to process") | |
| args = parser.parse_args() |
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
| #!/bin/zsh | |
| # Requires htmlq <https://github.com/mgdm/htmlq> | |
| # Only tested on Mac OS X | |
| [[ $# -eq 0 ]] && echo "No title supplied" && exit 1 | |
| url=https://www.scarecrow.com/45/search.html?keywords= | |
| tmp=/tmp/scare$$.html | |
| search=$( echo $1 | /usr/bin/sed 's/ /+/g' ) |
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
| 51 Kazuchika Okada | |
| 48 Tomohiro Ishii | |
| 48 Hiroshi Tanahashi | |
| 47 Will Ospreay | |
| 46 Mitsuharu Misawa | |
| 44 Kenta Kobashi | |
| 43 Kota Ibushi | |
| 42 Kenny Omega | |
| 39 Bryan Danielson | |
| 33 Shingo Takagi |
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
| #!/bin/zsh | |
| zmodload zsh/mathfunc | |
| VERBOSE=1 | |
| STATE=washington | |
| STATE_CENSUS=53 | |
| COUNTY=king |
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
| // Keywords to limit the Unsplash search; format is {keyword},{keyword} | |
| // See https://source.unsplash.com | |
| const keywords = 'nature' | |
| // Refresh interval in hours | |
| const refreshInterval = 6 | |
| // URL prototype to use for loading the image | |
| const imgUrlPrototype = (keywords) => `https://source.unsplash.com/random/featured/?${keywords}` |