Flying memes

Plotting the characteristic polynomial of a matrix

June 28th, 2017

Next step is determining the roots of the characteristic polynomial of a matrix. Before working on extracting the roots using Newton’s method I wanted to be able to visualize the function.

Read the rest of this entry »

Determinant of a matrix in JS

June 10th, 2017

I’m currently reading Deep Learning, from Ian Goodfellow, Yoshua Bengio and Aaron Courville. While reading I got interested in calculating the determinant of a square matrix, I know there are many existing libraries to do that but the algorithm looked simply enough to give it a try.

Read the rest of this entry »

Enabling browser BPG support using Service Worker

August 21st, 2016

This is, by far, my longest running side project. I’ve started it before moving to London, so around December 2014 and now I’m so proud to announce it is ready and released on GitHub.

Read the rest of this entry »

NoQueue: an experiment with Service Worker and The Physical Web

April 26th, 2015

Lately I found myself spending a considerable amount of time playing with Service Worker. This is an insanely interesting new HTML5 feature that basically allow us to define a JS file as a ‘proxy’ between the actual page and the server. The so defined Javascript file is then marked as Service Worker for the current domain (or a part of it) and this is where the magic begin

Read the rest of this entry »

Falling Stars: find one-hit wonders on Spotify

December 29th, 2014

During this summer I got bored from my Spotify playlist and started hunting new songs, the task revealed harder than I thought and I end up coding a small website to achieve my goal.
Falling Stars helps you find one-hit-wonders and create a Spotify playlist out of those songs.

Read the rest of this entry »

A wiki engine in 40LOC with Service Workers

August 10th, 2014

Service Workers are cool, a new technology that give you the power to write a proxy in Javascript that sits on your browser between the document and the server.

Read the rest of this entry »

How to render a dynamic animated Delaunay triangulation

May 4th, 2014

A friend of mine recently asked if I can create an animation out of this nice example; the first thing I did was wrap the render function around a requestAnimationFrame and add a random speed factor to all the vertices at every iteration.

Read the rest of this entry »

Angular.js prevent an invalid form submission

March 1st, 2014

Angular.js does an excellent job on preventing a form submission when invalid but only if the action attribute is not present, otherwise we have to implement a few tricks to achieve the same behaviour.

Read the rest of this entry »

A pure CSS3 driven overlay

February 11th, 2014

During my last workshop with Gabriele Lana I’ve started a nice conversation with Fabio Fabbrucci on how to recreate the perfect overlay effect using as less JavaScript as possible.

Read the rest of this entry »

Dealing with stripe patterns and scrolling

September 22nd, 2013

Recently I’ve been dealing with a page containing a stripe pattern as following:

Read the rest of this entry »