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
| gitacp() { | |
| if [ $# -eq 0 ]; then | |
| echo "Error: Commit message required" | |
| echo "Usage: gitacp <commit message>" | |
| return 1 | |
| fi | |
| git add . | |
| if ! git commit -m "$*"; then |
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 json | |
| import urllib.parse | |
| import argparse | |
| def color_to_hex(color): | |
| """Converts a color from #rrggbb to 0xrrggbb format.""" | |
| if color.startswith('#'): | |
| return '0x' + color[1:] | |
| return color |