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
https://databricks.com/session_na20/continuous-delivery-of-ml-enabled-pipelines-on-databricks-using-mlflow | |
https://databricks.com/blog/2020/06/05/automate-continuous-integration-and-continuous-delivery-on-databricks-using-databricks-labs-ci-cd-templates.html | |
https://github.com/databrickslabs/cicd-templates | |
https://github.com/mshtelma/cicdtestdev | |
https://github.com/mshtelma/lendingclubsscoringdemo |
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
AC | |
AL | |
AM | |
AP | |
BA | |
CE | |
DF | |
ES | |
GO | |
MA |
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
# adapted from https://pythonprogramming.net/k-means-from-scratch-machine-learning-tutorial/ | |
from sklearn import datasets | |
import numpy as np | |
from scipy import spatial | |
euclidian_distance = lambda a, b: np.linalg.norm(a - b) | |
cosine_distance = lambda a, b: spatial.distance.cosine(a, b) | |
class KCustom: |
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 zipfile | |
import gcsfs | |
fs = gcsfs.GCSFileSystem(project='project-name') | |
with fs.open('file.zip') as f: | |
z = zipfile.ZipFile(f) | |
for filename in z.namelist(): | |
if not os.path.isdir(filename): |
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 collections import defaultdict | |
from operator import itemgetter | |
from time import time | |
from binance.client import Client | |
FEE = 0.0005 | |
PRIMARY = ['ETH', 'USDT', 'BTC', 'BNB'] | |
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
Show hidden characters
{ | |
"extends": "standard" | |
} |
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
install.packages("nortest") | |
# install and import package needed for normality measures | |
install.packages("moments") | |
normality_measuares <- function (data) { | |
require("moments") | |
print(paste("skewness=", skewness(data), sep="")) | |
print(paste("kurtosis=", kurtosis(data), sep="")) | |
} |
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
const { spawn } = require('child_process'); | |
/** | |
* Handle monitor(s) changes, ig, perform an action when a monitor is connected or disconnected. | |
* | |
* Notes: | |
* - Windows implementation is based on Windows Management Interface (WMI) and WMI Query Language (WQL) | |
* | |
* Reference: | |
* - https://stackoverflow.com/questions/5278860/using-wmi-to-identify-which-device-caused-a-win32-devicechangeevent |
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
http://askubuntu.com/questions/460885/how-to-clone-git-repository-only-some-directories | |
http://www.richsomerfield.com/post/2014-03-05-adventures-in-git-sparsecheckouts/ | |
http://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/13738951#13738951 |
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
https://dzone.com/articles/reactjs-and-spring-data-rest-security | |
https://bitbucket.org/moondowner/facebook-react-thymeleaf-spring-mvc-example/src | |
https://spring.io/blog/2015/09/01/react-js-and-spring-data-rest-part-1-basic-features | |
http://todomvc.com/examples/react/#/ |