Skip to content

Instantly share code, notes, and snippets.

@RodrigoPrior
RodrigoPrior / subfig.tex
Last active December 15, 2022 16:44
subfig latex example
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\centering
\caption{Caption superior.}
@RodrigoPrior
RodrigoPrior / haar_mother_wavelet.py
Created November 5, 2017 16:21
Example of Haar Mother Wavelet in python using np.piecewise interval definition.
"""
Haar Mother Wavelet.
Example of Haar Mother Wavelet in python using np.piecewise interval definition.
"""
# Ref.:
# https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.piecewise.html
# https://sfalsharif.wordpress.com/2009/12/18/piecwise-function-definitions-in-numpy/
import numpy as np
import matplotlib.pyplot as plt
@RodrigoPrior
RodrigoPrior / PEL304-aula1.ipynb
Last active November 5, 2017 15:25
PEL304-aula1.ipnb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RodrigoPrior
RodrigoPrior / h5py_create_image_dataset.py
Created September 7, 2014 15:13
Create a dataset respecting the HDF5 image specification
# images to hdf5
# https://groups.google.com/forum/#!topic/h5py/9sA18XbC_ao
# https://github.com/h5py/h5py/issues/268
import h5py
import numpy
def create_image_dataset(group, dataset_name, image, **kwargs):
"""
Create a dataset respecting the HDF5 image specification
@RodrigoPrior
RodrigoPrior / ipython_install.md
Last active July 18, 2017 18:16
Setup Ambiente - Ipython - Computer Vision

Setup de ambiente Ipython

Ambiente: Ubuntu 14.04

sudo apt-get install git  
sudo apt-get install python-scipy  
sudo apt-get install python-numpy  
sudo apt-get install python-skimage  
sudo apt-get install python-pandas  

sudo apt-get install python-opencv

@RodrigoPrior
RodrigoPrior / example_list_of_symbols.tex
Last active February 27, 2017 20:48
exemplo de lista de simbolos e abreviaturas na unha
\chapter*{Lista de Abreviaturas}
%\clearpage \thispagestyle{empty} % optional to clear page numbers
\begin{tabular}{ll}
2D & Estrutura Bidimensional.\\
\\
3D & Estrutura Tridimensional.\\
\\
B & Região de corpo (\emph{Body}).\\
\\
@RodrigoPrior
RodrigoPrior / icelera_filter.ipynb
Created January 10, 2017 17:11
Resultado medida do calibrador icelera com filtro e sem filtro
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RodrigoPrior
RodrigoPrior / py_multiproc.py
Last active October 24, 2016 21:44
python multiprocessing
import time
import random
import numpy as np
import multiprocessing as mp
class simulacron(object):
"""sync and async functs for simulacron."""
def __init__(self, n=512*5, freq=512, freq2=4):
super(simulacron, self).__init__()
@RodrigoPrior
RodrigoPrior / bb_fundos.py
Created October 14, 2016 04:25
Banco do Brasil investiment funds - grab and compare
from lxml import html
import requests
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import time
from sklearn.cluster import KMeans
from sklearn import preprocessing
import seaborn as sns
@RodrigoPrior
RodrigoPrior / signal_and_filter-bandstop.py
Created October 12, 2016 21:59
Simple and stupid signal and bandstop butterworth filter
import numpy as np
import scipy
from scipy import signal
import matplotlib.pyplot as plt
freq1 = 60 # Hz
freq2 = 90 # Hz
sampling_rate = 1000 # samples per second
time = 1 # segundos