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
#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 |
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
%===================================================================== | |
% jhwhw.cls | |
% Provide jhwhw.cls class | |
%===================================================================== | |
%===================================================================== | |
% Identification | |
%===================================================================== | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class] |
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
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)) |
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 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], |