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
# color shortcuts | |
RED="%{$fg[red]%}" | |
YELLOW="%{$fg[yellow]%}" | |
GREEN="%{$fg[green]%}" | |
WHITE="%{$fg[white]%}" | |
BLUE="%{$fg[blue]%}" | |
CYAN="%{$fg[cyan]%}" | |
RED_BOLD="%{$fg_bold[red]%}" | |
YELLOW_BOLD="%{$fg_bold[yellow]%}" | |
GREEN_BOLD="%{$fg_bold[green]%}" |
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
a |
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
""" | |
This is an example script for use with dispatcher.py. It is manditory to define three things: | |
- NAME: the base name to give all jobs. | |
- params: a function that transforms global parameters to a set of local parameters. | |
- compute: a function that takes in local parameters and performs the desired computation. | |
""" | |
from logbook import Logger | |
# dispatcher.py has a logbook handler all set up, so we just need a logger. |
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 python | |
""" | |
You might need to run the following before running this script: | |
pip install --upgrade --user click clusterlib decorator logbook minibar pathlib sarge | |
Usage: | |
dispatcher.py ./script.py dispatch arg1 arg2 arg3 |
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 python | |
############################################################################### | |
# Ryan James | |
""" | |
This pre-commit hook runs nosetests and pylint, reporting their scores. | |
It blocks commits with failing tests. | |
To install | |
---------- |