This file contains 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 sys | |
if __name__ == '__main__': | |
r = int(sys.argv[1]) | |
g = int(sys.argv[2]) | |
b = int(sys.argv[3]) | |
a = float(sys.argv[4]) | |
if len(sys.argv) > 5: | |
bg_rgb = sys.argv[5] |
This file contains 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 | |
''' | |
git-chunks - split a source file into multiple chunks, preserving Git | |
history of the source text | |
You have a too-big file foo.py that is old and crufty. In | |
your editor split it into multiple files foo-bar.py, | |
foo-baz.py, and foo-quux.py, with some desiccated remains | |
in foo.py still. So from Git's perspective you have unstaged |