Skip to content

Instantly share code, notes, and snippets.

Fabrice Brito fabricebrito

View GitHub Profile
fabricebrito /
Last active Feb 17, 2020
Download ESA Sentinel-1 data from Sentinel-1 Scientific Data Hub (

Download ESA Sentinel-1 data from Sentinel-1 Scientific Data Hub (

Create a Sentinel-1 Scientific Data Hub account

Go here: and look for a "Register" link. Follow the registration steps.

Get aria2

aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink.

fabricebrito /
Created Dec 1, 2014
Per my friend Simone
print("test_program01_0 ok -> 5 points\ntest_program01_1 ok -> 5 points\ntest_program01_2 ok -> 5 points\nTotal score: 15.0")
"""This script will look for all .ipynb files in source_dir and convert them on the same place to
.rst files.
It is used in order to integrate notebooks output to sphinx documentation.
Read it, use it, hack it and share it ! Or you can do better writing a sphinx extension :-)

Copy to somewhere on $PATH. Then, in the root of a git repository, run these commands:

echo "*.ipynb diff=ipynb" >> .gitattributes 
git config diff.ipynb.textconv

When you change a notebook and run git diff, you'll see the diff of flattened, simplified notebooks, rather than the full JSON. This does lose some information (metadata, non-text output), but it makes it easier to see simple changes in the notebook.

This doesn't help with merging conflicting changes in notebooks. For that, see

View centos_python_env_setup
# Source:
# Install stuff #
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
fabricebrito / nomad.R
Last active Aug 29, 2015
Tidy NASA NOMAD and query it
View nomad.R
strs <- readLines("~/Downloads/nomad_seabass_v2.a_2008200.txt")
nomad <- read.csv(text=strs, skip=92, header=FALSE, stringsAsFactors = FALSE)
nomad.names <- "year,month,day,hour,minute,second,lat,lon,id,oisst,etopo2,chl,chl_a,kd405,kd411,kd443,kd455,kd465,kd489,kd510,kd520,kd530,kd550,kd555,kd560,kd565,kd570,kd590,kd619,kd625,kd665,kd670,kd683,lw405,lw411,lw443,lw455,lw465,lw489,lw510,lw520,lw530,lw550,lw555,lw560,lw565,lw570,lw590,lw619,lw625,lw665,lw670,lw683,es405,es411,es443,es455,es465,es489,es510,es520,es530,es550,es555,es560,es565,es570,es590,es619,es625,es665,es670,es683,ap405,ap411,ap443,ap455,ap465,ap489,ap510,ap520,ap530,ap550,ap555,ap560,ap565,ap570,ap590,ap619,ap625,ap665,ap670,ap683,ad405,ad411,ad443,ad455,ad465,ad489,ad510,ad520,ad530,ad550,ad555,ad560,ad565,ad570,ad590,ad619,ad625,ad665,ad670,ad683,ag405,ag411,ag443,ag455,ag465,ag489,ag510,ag520,ag530,ag550,ag555,ag560,ag565,ag570,ag590,ag619,ag625,ag665,ag670,ag683,a405,a411,a443,a455,a465,a489,a510,a520,a530,a550,a555,a560,a565,a570,a590,a6
View example1.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
fabricebrito / ui.R
Created Apr 27, 2014
reproducible report
View ui.R
# Define UI for application
## Application title
titlePanel("Dynamic report"),
You can’t perform that action at this time.