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
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support import expected_conditions | |
| def ready_state_complete(driver): | |
| state = driver.execute_script("return document.readyState") | |
| if state == "complete": | |
| return True | |
| return False | |
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 | |
| import pstats | |
| import cProfile | |
| import functools | |
| class ProfileIt(object): | |
| def __call__(self, f): |
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 bash | |
| # Note: | |
| # requirements.pip file must be inside current directory | |
| # | |
| # Use: freeze.sh [version:3.6] | |
| # | |
| # Example: | |
| # > freeze.sh | |
| # > freeze.sh 3.4 |
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 os | |
| import subprocess | |
| DIR = os.path.dirname(os.path.abspath(__file__)) | |
| PYTHON = os.path.normpath(os.path.join(DIR, '../', 'env', 'bin', 'python')) | |
| UPDATE_SCRIPT = os.path.normpath(os.path.join(DIR, 'update.py')) | |
| GIT_HEAD = ['git', 'rev-list', 'HEAD', '--count'] | |
| GIT_PULL = ['git', 'pull'] |