Skip to content

Instantly share code, notes, and snippets.

View stroebel's full-sized avatar
🤺

Jaco Stroebel stroebel

🤺
View GitHub Profile
@stroebel
stroebel / experimentnonlinsep.py
Last active May 20, 2019 09:03
Implementation of linearly separable SVM (Hard margin) for Project 2 WTW750
import numpy as np
from cvxopt import matrix as cvxopt_matrix
from cvxopt import solvers as cvxopt_solvers
# Data points to train with
X = np.array([
[14, 12, 7, 9, 20],
[2, 4, -7, -40, 20],
[4, 6, 9, 104, 200],
[100, 180, -70, -4, 1],
@stroebel
stroebel / Multiplicative_Persistence.jl
Created March 30, 2019 14:35
Naive implementation of a test for multiplicative persistence.
function mult(number::Integer, base::Integer)
"""
Multiplies the digits of a number together.
Should work with any base
"""
val = 1
it = 1
while number != 0
pos = mod(number, base^(it))
@stroebel
stroebel / jhwhw.cls
Created January 26, 2019 07:09 — forked from jhwilson/jhwhw.cls
JHW document class for Homework assignments
%=====================================================================
% jhwhw.cls
% Provide jhwhw.cls class
%=====================================================================
%=====================================================================
% Identification
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900