A list of on-demand and future conferences/webinars about DevOps and Reliability Engineering
This file contains 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
#Install | |
pip3 install --upgrade pip | |
pip3 install jupyter | |
#Run in local env | |
virtualenv myenv --python=python3.8 | |
#Install extension for execution time | |
pip3 install jupyter_contrib_nbextensions |
This file contains 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
""" | |
Performance Testing Code and APIs | |
""" | |
#Decorators | |
#timeit | |
#cProfile | |
#pyInstrument |
This file contains 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
dict.keys() | |
dict.values() | |
"key" in dict # let's say this returns False, then... | |
dict["key"] # ...this raises KeyError | |
dict.get("key") # ...this returns None | |
dict.setdefault("key", 1) |
This file contains 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
""" | |
Better Python Code Tips & Tricks | |
""" | |
#LONG DIGITS | |
#seperating numbers with _ the underscore is ignored | |
digit = 10_00_000 |