Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am felixlaumon on github.
  • I am felixlaumon (https://keybase.io/felixlaumon) on keybase.
  • I have a public key whose fingerprint is 39B1 4E7D B799 635B 3264 CFBE 09AD 2C84 CB76 7C93

To claim this, I am signing this object:

@felixlaumon
felixlaumon / custom.css
Created September 20, 2015 12:53
My iPython / Jupyter notebook custom styling
@import url('http://fonts.googleapis.com/css?family=Crimson+Text');
@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro');
/* Change code font */
.CodeMirror pre {
font-family: 'Input Mono Narrow', 'Source Code Pro', Consolas, monocco, monospace;
}
div.input_area {
border-color: rgba(0,0,0,0.10);
@felixlaumon
felixlaumon / mnist.ipynb
Created January 22, 2015 16:21
Simple visualization for the weights and outputs of convolution layer in Lasagne
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felixlaumon
felixlaumon / mnist-convnet-lasange.ipynb
Created January 2, 2015 15:53
mnist-convnet-lasange.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felixlaumon
felixlaumon / lesson02-homework.ipynb
Last active August 29, 2015 14:05
GA HK Data Science Class 02 Homework
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.
@felixlaumon
felixlaumon / matrix.py
Created August 27, 2014 15:22
matrix * vector without using itertool and mul
matrix = [
[1,3,9,2],
[2,4,6,8]
]
vector = [2,3,6,5]
def dot_product (a, b):
return sum(map(lambda x: x[0] * x[1], zip(a, b)))
def helloworld():
return 'helloworld'
// Wraps a promise-returning `fn` so that `fn` will only be invoked
// one after another (no 2 concurrent calls)
function sequential (fn) {
var lastPromise = $.Deferred().resolve().promise();
return function () {
var context = this;
var args = arguments;
lastPromise = lastPromise.then(function () {
return fn.apply(context, args);