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
| #Locate and Copy all Jupyter notebooks in one directory | |
| import os | |
| import shutil | |
| src_dir = '/home/jack' # Replace this with the root directory where you want to search for Jupyter notebooks | |
| dst_dir = '/home/jack/Desktop/HDD500/notebooks/' # Replace this with the destination directory where you want to copy the notebooks | |
| notebooks = {} # Dictionary to keep track of notebook names and sequence numbers | |
| for root, dirs, files in os.walk(src_dir): | |
| for file in files: | |
| if file.endswith('.ipynb'): |
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 PIL import Image, ImageFilter, ImageDraw | |
| import glob | |
| import time | |
| def circleblur(FILENAME,saveDirectory,count): | |
| im1 = Image.open(FILENAME) | |
| im1 = im1.resize((512,512), Image.BICUBIC) | |
| im2 = Image.new("RGBA",im1.size,(0,0,0,0)) | |
| mask = Image.new("L", im1.size, 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
| import turtle | |
| import math | |
| from PIL import Image | |
| def lerp(a, b, t): | |
| """Linear interpolation function. returns a when t==0, returns b when t==1 | |
| and linearly interpolates for values inbetween""" | |
| return (a * (1 - t)) + (b * t) | |
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 glob | |
| import os.path | |
| FILES = [] | |
| dir = '.' | |
| files = glob.glob(os.path.join(dir, '*.ipynb')) | |
| for file in files: | |
| print (file) | |
| FILES.append(file) | |
| def insert(data): |
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 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
| /*! | |
| * Bootstrap v4.0.0 (https://getbootstrap.com) | |
| * Copyright 2011-2018 The Bootstrap Authors | |
| * Copyright 2011-2018 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ | |
| :root { | |
| --blue: #007bff; | |
| --indigo: #6610f2; | |
| --purple: #6f42c1; |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <title>MongoDB Information</title> | |
| <meta name="description" content="Information concerning ChatterBot, mongodb, using mongo-compass and the terminal commands to work with Chatterbot statements."> | |
| <!-- Required meta tags --> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Bootstrap CSS --> |
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
| sudo docker pull microsoft/mssql-server-linux:2017-latest && | |
| docker run \ | |
| -e 'ACCEPT_EULA=Y' \ | |
| -e 'MSSQL_SA_PASSWORD=YourSTRONG!Passw0rd' \ | |
| -p 1401:1433 \ | |
| -n sql1 \ | |
| -d microsoft/mssql-server-linux:2017-latest | |
| private static string _connStr = @" | |
| Server=127.0.0.1,1401; |
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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
| <head> | |
| <title>Covid-19 Deaths in USA and Territories.</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta content="Jack Northrup " name="author" /> |
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 | |
| ''' | |
| Ranges any span of numeric data in a list between 0-1 | |
| Usage: | |
| from NormalizeData import * | |
| DATA = [1,34,546,3985,857463,49495857] | |
| NormalizeData(DATA) | |
| >>> array([0.00000000e+00, 6.66722483e-07, 1.10110228e-05, 8.04915870e-05, | |
| 1.73239150e-02, 1.00000000e+00]) | |
| ''' |