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
| function getContentsRelativeFromOrigin(filename: string | undefined, depth: number) { | |
| let path = '.'; | |
| if (!filename?.startsWith('/')) { | |
| const stack = new Error().stack!.split('\n'); | |
| const stack3 = stack[depth].split('('); | |
| path = stack3.pop()?.replace?.(/(:\d+)*\).*$/, '') ?? '.'; | |
| } | |
| return () => { |
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 | |
| EXECUTABLE_WEBP_CHECK=$(brew ls --versions webp) | |
| if [[ "" == "${EXECUTABLE_WEBP_CHECK}" ]]; then | |
| echo "Error: 'cwebp' missing. Please install via 'brew install webp'" | |
| exit 1 | |
| fi | |
| processFile() { |
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
| prompt(10) |
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
| { | |
| "__nghData__": [ | |
| { | |
| "t": { | |
| "0": "t1" | |
| }, | |
| "c": { | |
| "0": [] | |
| } | |
| }, |
OlderNewer