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
| // based on https://stackoverflow.com/a/56678483/65387 | |
| type RGB = [r: number, g: number, b: number] | |
| const UNK = 255 / 2 | |
| /** | |
| * @param hex RGB hex string like "#CCCFDB" | |
| * @returns RGB tuple in [0-255] | |
| */ |
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 | |
| # --- Re-run inside WSL when invoked from Windows shells --- | |
| if [[ -z "${WSL_INTEROP-}" && -z "${WSL_DISTRO_NAME-}" ]]; then | |
| exec wsl -d Ubuntu-24.04 -- /bin/bash -lc "aijail $*" | |
| fi | |
| # --- Verify HOME (we bindmount a bunch of $HOME paths) --- |
OlderNewer