Skip to content

Instantly share code, notes, and snippets.

View cscheffler's full-sized avatar

Carl Scheffler cscheffler

  • Minerva University
  • Cape Town, South Africa
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cscheffler
cscheffler / cs146-3.1-pre-class-work.ipynb
Last active August 30, 2019 10:05
Pre-class work for CS146 Session 3.1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cscheffler
cscheffler / call_center.csv
Last active August 29, 2019 13:01
CS146 pre-class work 2.2
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
3.0e+01
3.4e+00
3.2e+00
2.3e+00
2.2e+01
2.4e+01
4.8e+00
2.4e+01
1.4e+01
1.2e+00
@cscheffler
cscheffler / assignment-1-3-3.py
Last active September 3, 2018 13:30
Solution to Assignment 1, Question 3.1
from scipy import stats
mu = 1
sigma = 2
samples = 1000000
# Generate samples from the normal distribution
x = stats.norm.rvs(mu, sigma, samples)
# Calculate f(x)
f = x ** 3 + 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cscheffler
cscheffler / 10.2-pre-class-work-solutions.ipynb
Last active March 15, 2018 08:22
Pre-class work solutions for Lesson 10.2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
data = {
50: 0.00832,
51: 0.00911,
52: 0.00996,
53: 0.01089,
54: 0.01190,
55: 0.01300,
56: 0.01421,
57: 0.01554,
58: 0.01700,
@cscheffler
cscheffler / social-dynamics.ipynb
Last active April 10, 2019 02:25
Simulation of social groups splitting apart or merging as a result of social interactions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.