Probably what you're looking for
[a]Alternate (alternate version of the game, usually trying a different output method)[p]Pirate
| import argparse | |
| import logging | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--verbose', '-v', action='count', default=1) | |
| args = parser.parse_args() | |
| args.verbose = 70 - (10*args.verbose) if args.verbose > 0 else 0 | |
| logging.basicConfig(level=args.verbose, format='%(asctime)s %(levelname)s: %(message)s', |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| #!/bin/sh | |
| # recursively removes all .pyc files and __pycache__ directories in the current | |
| # directory | |
| find . | \ | |
| grep -E "(__pycache__|\.pyc$)" | \ | |
| xargs rm -rf | |
| # or, for copy-pasting: |