Terminology
- Placeholders are indicated between less-than and greater-than symbols (e.g.
<subnet mask>). - Optional arguments are indicated between square brackets (e.g.
[<upper range>]).
<subnet mask>).[<upper range>]).| class ProperIndentParser(argparse.ArgumentParser): | |
| """Use formatter_class that properly indents help in subparsers""" | |
| def __init__(self, *args, **kwargs): | |
| formatter_class = lambda prog: ProperIndentFormatter(prog) | |
| argparse.ArgumentParser.__init__( | |
| self, *args, **kwargs, formatter_class=formatter_class) | |
| class ProperIndentFormatter(argparse.HelpFormatter): |
| // ==UserScript== | |
| // @name Arrow keys for NetAcad | |
| // @namespace https://static-course-assets.s3.amazonaws.com/ | |
| // @version 0.10 | |
| // @description Arrow keys will scroll pages and figures, and numbers for total sections/topics/pages are inserted | |
| // @author TakingItCasual | |
| // @match https://static-course-assets.s3.amazonaws.com/* | |
| // @grant none | |
| // ==/UserScript== |
The video: https://www.youtube.com/watch?v=N5vscPTWKOk
This guide assumes environments are placed under ~/pyenvs/, and provides examples for an environment named ec2mc_env.
Installing virtualenv:
$ sudo pip install virtualenv