diff --git a/docs/01-transitioning-to-the-shell/02-navigating-your-system/images/pushd-popd2.png b/docs/01-transitioning-to-the-shell/02-navigating-your-system/images/pushd-popd2.png new file mode 100644 index 00000000..701cae53 Binary files /dev/null and b/docs/01-transitioning-to-the-shell/02-navigating-your-system/images/pushd-popd2.png differ diff --git a/docs/02-core-skills/07-thinking-in-pipelines/images/diagrams.bmpr b/docs/02-core-skills/07-thinking-in-pipelines/images/diagrams.bmpr index 2068dca5..7669743b 100644 Binary files a/docs/02-core-skills/07-thinking-in-pipelines/images/diagrams.bmpr and b/docs/02-core-skills/07-thinking-in-pipelines/images/diagrams.bmpr differ diff --git a/docs/05-building-your-toolkit/28-managing-remote-git-repositories/images/github-create-new-repository-cropped.png b/docs/05-building-your-toolkit/28-managing-remote-git-repositories/images/github-create-new-repository-cropped.png new file mode 100644 index 00000000..93c2d25c Binary files /dev/null and b/docs/05-building-your-toolkit/28-managing-remote-git-repositories/images/github-create-new-repository-cropped.png differ diff --git a/docs/06-advanced-techniques/31-the-secure-shell/diagrams/asymmetric-encryption-share-secret.drawio b/docs/06-advanced-techniques/31-the-secure-shell/diagrams/asymmetric-encryption-share-secret.drawio index 58656c86..cd08d4eb 100644 --- a/docs/06-advanced-techniques/31-the-secure-shell/diagrams/asymmetric-encryption-share-secret.drawio +++ b/docs/06-advanced-techniques/31-the-secure-shell/diagrams/asymmetric-encryption-share-secret.drawio @@ -1 +1,54 @@ -7Vhdc9o6EP01nrYPZfwJ5jFA0s40d5o7tNP2qSPsxVaRvYwsAvTXV7JlYyMnaZqkpR+ZIUhHKxmds7ta2fKm2e4VJ+v0P4yBWa4d7yxvZrmu49hD+aWQfYWEnl8BCaexNjoAc/oVNGhrdENjKDqGApEJuu6CEeY5RKKDEc5x2zVbIus+dU0SMIB5RJiJfqCxSOt9DceHgddAk1Q/OnRH1UBGamO9kyIlMW5bkHdueVOOKKpWtpsCU+TVvFTzLm4YbX4Yh1x8z4Rd+H5JPn98Hfm76TC4wFX8/9lLt1rlmrCN3vCUAxGg2Mtj+R/yiO/XQvXlZw4RB6H3I/Y1SRw3eQzqObblTbYpFTBfk0iNbqVbSCwVGZM9RzYLOULz5B2utb0GLmEpusgEhcCsi8leIHvm5jUf18AF7FqQJuMVYAaC76WJHvWCaoZ2TKfWaduSucbSlsJDjRHtWUmz8oF82dD830ML39BiggvLHTL54MmCy1aiWs/nwOUuXxgqSAdbq+YmY2eRQC5tFRtUOvMlWQC7woIKirk0WWhmG4MzRhM1IPBILdwIRnOYNuFlPw77od1hv4d872dyHxjcm8SbiGQtgmeFOXC1WcghE38D+xtly1GG3Z3RsyDRKinj7W2ljMZjwldvVYgIxag9sB8pSpyuTs7YN4QKe4Ry7KdSavhDSslI6tPphnx26pKcmiajHk2OKG3xdWdSIjoZRZIjUGmMKctJQ/MUmcpucllvWf7dmMgKwXHVHNxug7RWsO3QvigPmPp8tkvtirQ50Gp3yHaJKnIGFIvRgMqKoxgwjFbK7lF0dfwjXUeGrq5v6uo9layhoSLEsjjSXeQixQRzws4P6KRbChxsLrE875X+X0CIva70yEZgN5okf3z/Uc8vO5/K6Anq7mzXHpzta5EE4eJMVXxl4KoorLALqnatZ8S1RcRIUcgUXYLaxLlNR7X1W1XkwIig1926sU8TPfUKaS5a5cj4qB7xx4Ogu4jcTQJCz2tXekdLOcGdSxW44REYS5Vu0uzpxz1nbCSE86aOrHOuLjALKL+kG7h2eZ72Ol2ZK7qOYmSJ4xSQ0TiufBIK+pUsyvWUG6zVtksigokVzHpVvy0gjJBurh/6IVa7wu8L9Zf2wLFDr5r7QMdxvO4MXC4LeBJV61qgJesMaln1CftnXRGOY/KX3xEcx5BAB41xTZgyKnf+m18TfP+07gmOeWF+2EWB0+vyuv373xS80amVpXVm/FeXPkzY8MTqUsd8U/K33QH94ckFW98rlH/Bdm9hR98RbMOeYPPuravsHt4+VzXi4R2+d/4N \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/programs/lookup/lookup-v1.py b/samples/programs/lookup/lookup-v1.py index 91f77d26..c42cdd63 100644 --- a/samples/programs/lookup/lookup-v1.py +++ b/samples/programs/lookup/lookup-v1.py @@ -17,7 +17,7 @@ # Add the word to our list of lookups, and strip any whitespace from the # beginning and end of it. For now, we don't have a definition. word = word.strip() - definition = '' + definition = "" # Write the result. - print("{} - {}".format(word, definition)) + print(word, " - ", definition) diff --git a/samples/programs/lookup/lookup-v2.py b/samples/programs/lookup/lookup-v2.py index e2b2ea58..bfe1cc80 100644 --- a/samples/programs/lookup/lookup-v2.py +++ b/samples/programs/lookup/lookup-v2.py @@ -19,7 +19,7 @@ def search_for_word(word): # If the word is not found, return an empty definition. except urllib.error.HTTPError as http_error: if http_error.code == 404: - return '' + return "" raise # Now try and parse the data. @@ -49,4 +49,4 @@ def search_for_word(word): definition = search_for_word(stripped_word) # Write the result. - print("{} - {}".format(word, definition)) + print(word, " - ", definition) diff --git a/samples/programs/lookup/lookup-v3.py b/samples/programs/lookup/lookup-v3.py index 11b551b0..0af4dc46 100644 --- a/samples/programs/lookup/lookup-v3.py +++ b/samples/programs/lookup/lookup-v3.py @@ -11,10 +11,10 @@ # Create an argument parser and define the arguments for our program. parser = argparse.ArgumentParser() parser.add_argument( - '-c', '--crop', - help='crop the output line length', + "-c", "--crop", + help="crop the output line length", type=int, - nargs='?', + nargs="?", const=80, # Default value if -c is supplied default=None) # Default value if -c is not supplied args = parser.parse_args() @@ -35,7 +35,7 @@ def search_for_word(word): # If the word is not found, return an empty definition. except urllib.error.HTTPError as http_error: if http_error.code == 404: - return '' + return "" raise except Exception as e: sys.stderr.write("An error occurred trying to download the definition of '{}'".format(word)) diff --git a/samples/programs/lookup/lookup.py b/samples/programs/lookup/lookup.py index 14495c05..44790591 100755 --- a/samples/programs/lookup/lookup.py +++ b/samples/programs/lookup/lookup.py @@ -19,22 +19,22 @@ # Create an argument parser and define the arguments for our program. parser = argparse.ArgumentParser( - prog='parser', - description='lookup the defintion of words from dictionaryapi.dev', + prog="parser", + description="lookup the defintion of words from dictionaryapi.dev", epilog=examples, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - 'words', - help='optional list of words to define - if omitted stdin is used', + "words", + help="optional list of words to define - if omitted stdin is used", type=str, nargs='*' ) parser.add_argument( - '-c', '--crop', - help='crop the output line length', + "-c", "--crop", + help="crop the output line length", type=int, - nargs='?', + nargs="?", const=80, # Default value if -c is supplied default=None # Default value if -c is not supplied ) @@ -56,7 +56,7 @@ def search_for_word(word): # If the word is not found, return an empty definition. except urllib.error.HTTPError as http_error: if http_error.code == 404: - return '' + return "" raise # If the user hits ctrl hit, exit without an error message. except KeyboardInterrupt: