Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
rm -r ./sample_data/ | |
git clone https://github.com/GIT_USER/GIT_REPO | |
find ./GIT_REPO/ -maxdepth 1 -mindepth 1 -exec mv {} . \; | |
rm -r ./GIT_REPO/ |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.integrate import odeint | |
# Something to note is that this is from the old API of scipy and its better to use their new solve_ivp() method instead. | |
# Define the chemical system and its kinetic constraints | |
def rxn(C,t): | |
Ca = C[0] | |
Cb = C[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
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import tensorflow as tf | |
from tensorflow import keras | |
SAVE = False | |
def plot_series(time, series, format="-", start=0, end=None): |
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
# @author: gitUmarx` | |
import os | |
import zipfile | |
import random | |
from shutil import copyfile | |
def split_data(SOURCE, TRAINING, TESTING, SPLIT_SIZE): | |
""" | |
Function to split data from SOURCE into its respective TRAING and TESTING directories using the desired SPLIT_SIZE | |
@param: SOURCE - path to source dataset folder as String |
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
import glob | |
import os | |
filenames = glob.glob('*.ARW') | |
for file in filenames: | |
os.remove(file) | |
print(file + " has been deleted, moving on to next file") | |
print("All files have been deleted, thank you") |
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
import time | |
import smtplib | |
ep = 'smtp.gmail.com' | |
blue_spy = 'youremail@gmail.com' | |
pas = 'yourPassowrd' | |
port = 587 | |
msg = 'The Lannisters send their regards' | |
red_spy = 'theirEmail@gmail.com' | |
server = smtplib.SMTP(ep,port) |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
from numpy import genfromtxt | |
import os | |
path = os.path.abspath("A3.csv") | |
def main(): | |
X = genfromtxt(path,delimiter=',') | |
max = np.amax(X) | |
min = np.amin(X) |