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
| """ | |
| Strategy: Importing the entire python standard library in one shot. | |
| Use-Cases: Not a whole lot beyond testing what all IS and IS NOT: | |
| - Available in your environment | |
| - Supported on the running platform | |
| """ | |
| def import_stdlib() -> None: |
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
| #!/bin/bash | |
| # Percent encodes the text input string and prints the result to STDOUT | |
| # Add the following line to your shell profile to execute this script from anywhere | |
| # without having to specify the full path to this script | |
| # alias uti="/path/to/this/script.sh" | |
| if [ $# -eq 0 ]; then |
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
| #!/bin/bash | |
| # Get the Uniform Type Identifier (UTI) for the input file | |
| # Add the following line to your shell profile to execute this script from anywhere | |
| # without having to specify the full path to this script | |
| # alias uti="/path/to/this/script.sh" | |
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 hashlib, secrets | |
| def main(): | |
| ''' | |
| Creates a 32 bit hexadecimal string and returns it's sha256 digest | |
| ''' | |
| def create_token() -> str: |