Skip to content

Instantly share code, notes, and snippets.

@minya
minya / 0_reuse_code.js
Created August 30, 2016 09:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@minya
minya / svm.py
Last active August 29, 2015 14:19 — forked from mblondel/svm.py
# Mathieu Blondel, September 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
return np.dot(x1, x2)