Skip to content

Instantly share code, notes, and snippets.

@NimmiW
NimmiW / ar.py
Created January 6, 2018 12:56 — forked from SuperFluffy/ar.py
Chaotic attractor reconstruction from http://www.node99.org/tutorials/ar/
# Code taken from http://www.node99.org/tutorials/ar/ and adjusted for Python 3 + filled in the missing pieces:
#
# + Python 2 tuple args -> Python 3 does not allow passing tuples; unpack with *args instead
# + numpy.hstack -> numpy.vstack
# + preprocess -> numpy.histogram + numpy.digitize
# + mutual_information -> sklearn.metrics.normalized_mutual_information_score
# + separate between the "discretized signal" and the original continuous dynamics
import numpy as np
import matplotlib.pyplot as plt
@NimmiW
NimmiW / lcs.py
Created March 5, 2017 15:42 — forked from istepanov/lcs.py
Search longest common substrings using generalized suffix trees built with Ukkonen's algorithm, written in Python 2.7
#!/usr/bin/env python
# -*- coding: utf-8
"""
Search longest common substrings using generalized suffix trees built with Ukkonen's algorithm
Author: Ilya Stepanov <code at ilyastepanov.com>
(c) 2013
"""
@NimmiW
NimmiW / README.md
Created March 3, 2017 06:36 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/