Skip to content

Instantly share code, notes, and snippets.

View mgje's full-sized avatar

Martin Guggisberg mgje

  • University of Applied Sciences and Arts Northwestern Switzerland
  • Basel
View GitHub Profile
@mgje
mgje / animation.py
Created February 7, 2021 13:52 — forked from korakot/animation.py
Make animation in Colab with matplotlib
from matplotlib import animation, rc
#
# other code
#
anim = animation.FuncAnimation(fig, animate, init_func=init,
frames=100, interval=100, blit=True)
# below is the part which makes it work on Colab
rc('animation', html='jshtml')
anim # or HTML(anim.to_jshtml())
@mgje
mgje / EigenFace.ipynb
Last active August 29, 2015 14:19 — forked from bugra/EigenFace.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgje
mgje / storage.js
Created December 15, 2013 20:18 — forked from gustinmi/storage.js
/**
*
* Component for utilizing local storage. It provides backup plan, if no WebStorage is available on client
*
*We support html5 storage, and cookie store if webStorage is not available.
*
*Cookies
* Are for older browsers only. A "session" cookie (one without expiration data) is available in all windows
* that have access to that domain until the browser is shut down. This is bad.
* 4096 chars limit