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
from DOS import DOS | |
import requests | |
class DDOS(DOS): | |
def __init__(self): |
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: Samson Qian | |
""" | |
import numpy as np | |
from matplotlib import pyplot as plt | |
class LogisticRegression: | |
""" | |
A Logistic Regression model that uses single-featured, labeled data. Contains methods to |
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: Samson Qian | |
""" | |
import numpy as np | |
class Convolution: | |
""" | |
A convolution layer used to convolve an image with pixels. Represented by a 3-d array with | |
a specified number of filters to use and the size of the filters. |
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 sympy as sym | |
import math | |
class NewtonsMethod: | |
""" | |
Newton's Method to find zeros and optimize functions. | |
""" | |
def __init__(self, f): |
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 | |
def a_star(): | |
... | |
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
class MaxSumSubarray: | |
""" | |
Approaches to solving the Maximum Subarray problem. | |
""" | |
def __init__(self, arr): | |
self.arr = arr | |
def brute_force(self): | |
""" | |
Uses brute force approach to find maximum sum of subarray for inputted array. |
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 | |
def gradient_descent(): | |
... |
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
// delete branch locally | |
git branch -d <branchName> | |
// delete branch remotely | |
git push origin --delete <branchName> |
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
class Sort: | |
def __init__(self, arr): | |
self.arr = arr | |
def brute_force(self): | |
return | |
def quick_sort(self): | |
return |
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
// login | |
heroku login -i | |
// add repo to heroku | |
// create or pick existing heroku project name | |
heroku git:remote -a {your-project-name} | |
// deploy heroku app | |
git push heroku master |
OlderNewer