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 mpl_toolkits.mplot3d import Axes3D | |
| from matplotlib.legend_handler import HandlerLine2D | |
| import matplotlib.pyplot as plt | |
| import math | |
| def drange(start, stop, step): | |
| r = start | |
| while r < stop: | |
| yield r | |
| r += step |
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 cx_Oracle | |
| import os | |
| # Data Base configuration | |
| db_host = os.environ.get('DB_HOST') | |
| db_port = os.environ.get('DB_PORT') | |
| db_name = os.environ.get('DB_NAME') | |
| db_user = os.environ.get('DB_USER') | |
| db_pass = os.environ.get('DB_PASS') |
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 time | |
| import functools | |
| class tmeasure(object): | |
| dicTimes = {} | |
| initTime = 0 | |
| glbTime = 0 | |
| def __init__(self): | |
| initTime = 0 |
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 bs4 import BeautifulSoup | |
| import requests | |
| import re | |
| import sys | |
| def download( fileUri, filename ): | |
| ''' | |
| Function to download files with http get. | |
| The limit size is around 10Mb | |
| ''' |