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 python3 | |
| # Via: https://github.com/python/cpython/blob/main/Tools/scripts/pindent.py | |
| # See also: https://stackoverflow.com/a/118744/454773 | |
| # This file contains a class and a main program that perform three | |
| # related (though complimentary) formatting operations on Python | |
| # programs. When called as "pindent -c", it takes a valid Python | |
| # program as input and outputs a version augmented with block-closing | |
| # comments. When called as "pindent -d", it assumes its input is a |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import nbformat | |
| def flake8_report_insertion(report_file, overwrite=False, tags=True): | |
| """Parse flake8 report file into notebook output cells.""" | |
| # Read in report file generate as eg: | |
| # nbqa flake8 notebooks/*.ipynb > flake8_reports.txt | |
| with open(report_file, 'r') as f: | |
| lines = f.read().splitlines() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| ```{r, cache = F, echo = F, message=F} | |
| # Allow knitr to continue to execute even in the presence of errors | |
| knitr::opts_chunk$set(error = TRUE) | |
| knitr::opts_chunk$set(fig.path = "images/creating-road-book-") | |
| knitr::opts_chunk$set(engine.path = list(python = '/usr/local/bin/python3')) | |
| options(rgl.useNULL = TRUE, | |
| rgl.printRglwidget = TRUE) | |
| ``` | |
| # Creating A Road Book |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/perl | |
| # IPspeak | |
| # Andy S-C | |
| # 18-May-13 | |
| # 15-Oct-16 - made more "human" ... ten dot nought dot one nine three dot seventeen | |
| # this is the order we check the interfaces | |
| @interfaces = ("eth0", "wlan0"); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.