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
| function dropHandler(ev) { | |
| ev.target.classList.remove("over_zone"); | |
| // Prevent default behavior (Prevent file from being opened) | |
| ev.preventDefault(); | |
| if (ev.dataTransfer.items) { | |
| // Use DataTransferItemList interface to access the file(s) | |
| // console.log(ev.dataTransfer) |
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/python | |
| # Finds files based on patterns (supporting wildcards *?[-]) | |
| # Prints matching filenames or otherwise "NOT FOUND" | |
| # Exits with code 1 if at least one pattern doesn't match | |
| from __future__ import print_function | |
| import glob | |
| import sys | |
| import os |
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 python | |
| """" | |
| nexus-uploader.py | |
| Allows mirroring local M2 repositories to a remote Nexus server with a single command. | |
| Supports: | |
| - uploading of common classifiers (sources, javadocs) if available | |
| - using regex include pattern for artifactIds/groupIds | |
| - recursively processing local repo, just point to the root |
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
| # Multiple Linear Regression | |
| # https://www.superdatascience.com/machine-learning/ | |
| # Importing the libraries | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| # Importing the dataset | |
| dataset = pd.read_csv('50_Startups.csv') |
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/python | |
| import BaseHTTPServer, SimpleHTTPServer, ssl, argparse, re | |
| from tempfile import mkdtemp | |
| from shutil import rmtree | |
| from contextlib import contextmanager | |
| from OpenSSL import crypto | |
| from os.path import exists, join, abspath | |
| @contextmanager | |
| def TemporaryDirectory(): |
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 Github: https://assets-cdn.github.com/assets/github-debf0b32d523b7b17d8bd81d3e9e086bb87af44c5d347e2a0f49bc991d0a77e6.js | |
| function(e, t) { | |
| function n(e) { | |
| return e && e.__esModule ? e : { | |
| "default": e | |
| } | |
| } | |
| function i(e) { |