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 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
| # I needed to print out ascii tables from data in the form: | |
| # [ ('column 0 title', 'column 1 title' ..), | |
| # ('row 0, column 0 data', 'row 0, column 1 data' ...) ...] | |
| # | |
| # and surprisingly it got complicated because of variable lengths of the data. | |
| # I googled for 'standard' ways of doing this and I found suggestions like: | |
| # http://stackoverflow.com/questions/5909873/python-pretty-printing-ascii-tables | |
| # ...which were a bit dated and hard to read or full scale modules like: | |
| # | |
| # http://pypi.python.org/pypi/texttable/ |
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 node | |
| /* -*- js2 -*- */ | |
| /* ************************************************************* */ | |
| // Set up classes to support Range objects. Ported from | |
| // Nagios::Plugin::Range. See named functions below. | |
| // TODO: Modularize properly/idiomatically. | |
| /* | |
| * Represents a Nagios plugin range object. |