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 | |
| # Add Random Gradient Background + Drop Shadow - macOS Quick Action Script | |
| # Requires: ImageMagick (brew install imagemagick) | |
| export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| for INPUT_FILE in "$@"; do | |
| FILENAME=$(basename "$INPUT_FILE") | |
| DIRNAME=$(dirname "$INPUT_FILE") |
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
| import math | |
| import decimal | |
| def pretty_print(value): | |
| value = float(value) | |
| bias = 0 | |
| intdigits = math.floor(math.log10(value)) | |
| divisor = 0 | |
| if intdigits >= 3: | |
| divisor = intdigits - (intdigits%3) |
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
| { | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", | |
| "*.ttf", | |
| "*.tga", | |
| "*.dds", |