Skip to content

Instantly share code, notes, and snippets.

View leouieda's full-sized avatar
👨‍🏫
Teaching mode

Leonardo Uieda leouieda

👨‍🏫
Teaching mode
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / updated_derivatives_matteo.ipynb
Last active August 29, 2015 14:20
Updated derivative calculations using Matteo's data (reflects PR 196 https://github.com/fatiando/fatiando/pull/196)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / numba-tesseroids.ipynb
Last active August 29, 2015 14:16
Numba implementation of tesseroid forward modeling: http://nbviewer.ipython.org/gist/leouieda/f2824b0062a4446a6e24
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
from __future__ import division, print_function
"""
This script generates a file to use for building authorea papers, and then runs
latex on them.
Requires python >= 2.6 (3.x should work, too)
The key assumptions are:
@leouieda
leouieda / mesh_indexing.ipynb
Created March 6, 2015 19:09
Experimenting with meshes and indexing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / borehole-prism-gravity.ipynb
Created August 8, 2014 15:08
Examine the gravity fields of a prism when calculate on boreholes through it.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / l-curve.ipynb
Created February 19, 2014 19:12
Prototype for an L-curse regularization parameter selection for Fatiando a Terra
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / janelas.ipynb
Created February 18, 2014 21:03
Mostra como selecionar valores em janelas em arrays do numpy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leouieda
leouieda / plot_wav.py
Created February 17, 2014 01:33
Python code to plot a .wav file
# Load the required libraries:
# * scipy
# * numpy
# * matplotlib
from scipy.io import wavfile
from matplotlib import pyplot as plt
import numpy as np
# Load the data and calculate the time of each sample
samplerate, data = wavfile.read('Clapping.wav')
@leouieda
leouieda / accelerate.ipynb
Created September 25, 2013 18:42
Trying out Anaconda Accelerate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.