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
# Tiny Asteroids with exploding ship for Microbit | |
from microbit import * | |
import random | |
# board dimensions | |
pixel_width, pixel_height = 4, 4 | |
Frame_Rate_In_Milliseconds = 500 | |
# general game functions |
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 matplotlib.pyplot as plt | |
import pandas as pd | |
fin = open("balloon.csv") | |
data = [] | |
for line in fin: | |
data.append(float(line[1:6])) |
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 random | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
def rolldice(number): | |
rolls = np.zeros((number,), int) | |
for i in range(number): | |
die = random.randint(1,6) | |
rolls[i] = die |
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 random | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import dice # My custom module | |
rollsums = testSums(1, 100) | |
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 matplotlib.pyplot as plt | |
import scipy.signal as sig | |
x = np.linspace(1,100,200) | |
error = (np.random.normal(size=200))*1000 #generate random errror centered at 0 | |
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
""" | |
Created on Mon Apr 8 12:32:37 2019 | |
@author: jenncross | |
""" | |
import imageio | |
from scipy import ndimage | |
import matplotlib.pyplot as plt | |
import numpy as np |
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
""" | |
Created on Wed Apr 10 13:27:17 2019 | |
@author: jenncross | |
""" | |
import numpy as np | |
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 sympy as sym | |
import math | |
def title(s): | |
print("\n") | |
print("*******") | |
print(s) | |
title("Square Root of 9") | |
print("Math: " + str(math.sqrt(9))) |
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 matplotlib.pyplot as plt | |
import random | |
def openckdfile(): | |
glucose, hemoglobin, classification = np.loadtxt('ckd.csv', delimiter=',', skiprows=1, unpack=True) | |
return glucose, hemoglobin, classification | |
OlderNewer