Skip to content

Instantly share code, notes, and snippets.

View rafaelperez's full-sized avatar
🏠
Working from home

Rafael Silva rafaelperez

🏠
Working from home
View GitHub Profile
import xml.etree.ElementTree as ET
import threading, re, struct, time
#Create the svg to roto class
class SvgRoto(threading.Thread):
def __init__(self, file, maxShapes=300, renderHidden=False):
threading.Thread.__init__(self)
#the file name
self.file = file
#list of all of the shapes
@rafaelperez
rafaelperez / gist:a60b221fd25d5afab3f118b79ecb87a9
Created September 3, 2017 20:58 — forked from megafaunasoft/gist:6152840
Spectral matting in numpy/scipy
#-----------------------------------------------------------------------------------------
#
# Spectral Matting
#
import time
import logging
import numpy as np
from scipy import ndimage, sparse
import scipy.sparse.linalg as sparse_linalg
@rafaelperez
rafaelperez / dabblet.css
Created February 17, 2014 19:55 — forked from alicelara/dabblet.css
Happy Valentine's Day
/**Happy Valentine's Day
*/
*, *:before, *:after {
box-sizing: border-box
}
body{
background-color:#E03840;
}