Skip to content

Instantly share code, notes, and snippets.

View colemilne54's full-sized avatar

Cole Milne colemilne54

  • The Milne Empire | Hatchery
  • Arnold, CA | Bozeman, MT | Sacramento, CA
  • 14:37 (UTC -08:00)
  • LinkedIn in/colemilne
View GitHub Profile
@colemilne54
colemilne54 / ngrok-copy
Last active August 9, 2023 02:05 — forked from mlsteele/ngrok-copy
Copy the url of the active ngrok connection to the clipboard.
#!/usr/bin/env bash
# Copy the url of the active ngrok connection to the clipboard.
# Usage:
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard.
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard.
if [[ "$1" == "-u" ]]; then
NGROK_URL=`curl -s http://127.0.0.1:4043/api/tunnels | grep "https://.*.ngrok-free.app" -oh`
else
NGROK_URL=`curl -s http://127.0.0.1:4043/api/tunnels | grep "https://.*.ngrok-free.app" -oh`
We can't make this file beautiful and searchable because it's too large.
HeartDisease,BMI,Smoking,AlcoholDrinking,Stroke,PhysicalHealth,MentalHealth,DiffWalking,Sex,AgeCategory,Race,Diabetic,PhysicalActivity,GenHealth,SleepTime,Asthma,KidneyDisease,SkinCancer
No,16.6,Yes,No,No,3.0,30.0,No,Female,55-59,White,Yes,Yes,Very good,5.0,Yes,No,Yes
No,20.34,No,No,Yes,0.0,0.0,No,Female,80 or older,White,No,Yes,Very good,7.0,No,No,No
No,26.58,Yes,No,No,20.0,30.0,No,Male,65-69,White,Yes,Yes,Fair,8.0,Yes,No,No
No,24.21,No,No,No,0.0,0.0,No,Female,75-79,White,No,No,Good,6.0,No,No,Yes
No,23.71,No,No,No,28.0,0.0,Yes,Female,40-44,White,No,Yes,Very good,8.0,No,No,No
Yes,28.87,Yes,No,No,6.0,0.0,Yes,Female,75-79,Black,No,No,Fair,12.0,No,No,No
No,21.63,No,No,No,15.0,0.0,No,Female,70-74,White,No,Yes,Fair,4.0,Yes,No,Yes
No,31.64,Yes,No,No,5.0,0.0,Yes,Female,80 or older,White,Yes,No,Good,9.0,Yes,No,No
No,26.45,No,No,No,0.0,0.0,No,Female,80 or older,White,"No, borderline diabetes",No,Fair,5.0,No,Yes,No
node_1 node_2
0 747
1 4257
1 2194
1 580
1 6478
1 1222
1 5735
1 7146
1 2204
@colemilne54
colemilne54 / titanic.csv
Created February 8, 2022 03:36
titanic csv
Survived Age Fare Cabin
0 22 7 NaN
1 38 71 C85
1 26 7 NaN
1 35 53 C123
0 35 8 NaN
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>HTML 5 Game Tutorial</title>
</head>
<body>
<canvas id="surface" width="600" height="400"></canvas>
</body>
@colemilne54
colemilne54 / estimate_pi.py
Last active May 3, 2020 02:09
Pi Derived From Random Numbers (Visualized)
# https://www.youtube.com/watch?v=pvimAM_SLic
# Algorithm code from video above, code past print statement is my original code.
import numpy as np
import matplotlib.pyplot as plt
import random
def estimate_pi(n):
num_point_circle = 0
@colemilne54
colemilne54 / MetalGenreGenerator1.py
Last active March 18, 2018 23:00
Metal Genre Generator
from tkinter import *
import random
def generator():
x = random.randint(2, 6)
starters = ['New Wave of', 'Blackened', 'Christian', 'Melodic', 'Symphonic', ' Ambient']
nationality = [' American', ' British', ' Norwegian']
@colemilne54
colemilne54 / Take A Break
Created October 9, 2017 02:19
Every 2 hours a YouTube video plays in a new browser tab and double clicks to get the video to full screen. This task will be performed 3 times before the program is done.
import time
import webbrowser
import pyautogui
breaks = 0
print("This program started on " + time.ctime())
while (breaks < 3):
time.sleep(7200)
webbrowser.open("https://www.youtube.com/watch?v=9Ei89MsnCd0");