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
# When you get an error like | |
# ('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed') | |
# when using twisted, autobahn, etc... | |
# on osx | |
# than you may have to update your openssl | |
# Do this by using brew: | |
# (install brew) | |
brew update | |
brew install openssl |
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
def validateEmail(self, email): | |
"""This function validates the mail address given | |
in the argument: email. | |
""" | |
if len(email) > 7: | |
if re.match("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$", email) != None: | |
return True | |
return False |
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
#### | |
# Usage: | |
# build.sh kivy-app.sh | |
# | |
# What does this?: | |
# This signs kivy executables built with pyinstaller for macOS. | |
# | |
#### | |
if [ $# -eq 0 ] |
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
# If you run into the the following error while installing pygraphviz into a virtualenv | |
# (on macOs, python3) | |
# | |
# pygraphviz/graphviz_wrap.c:2987:10: fatal error: 'graphviz/cgraph.h' file not found | |
# #include "graphviz/cgraph.h" | |
# ^~~~~~~~~~~~~~~~~~~ | |
# 1 error generated. | |
# error: command 'clang' failed with exit status 1 | |
# - Install graphviz via brew |
OlderNewer