Skip to content

Instantly share code, notes, and snippets.

View fabricebrito's full-sized avatar

Fabrice Brito fabricebrito

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<owc:offering code="http://www.terradue.com/api/data-pipeline/notebook" xmlns:owc="http://www.opengis.net/owc/1.0" >
<owc:operation code="NbView" href="http://recast.terradue.com:5000/urls/store.terradue.com/api/cos2dev/_results/workflows/ec_better_dcs_better_wfp_00001_dcs_better_wfp_00001_1_2_7/run/9a2116e0-1bfc-11e8-8267-0242ac110002/0001929-171122163343932-oozie-oozi-W/de129699-89bf-495d-bc6e-c1480fd0dd85/result.ipynb" method="GET" type="text/html" />
<owc:content href="https://store.terradue.com/download/better-wfp-00001/files/v1/0ace1c48f2cebf625b74569827a306d1f28f74ff" type="application/x-ipynb+json" />
</owc:offering>
<owc:offering code="http://www.terradue.com/api/data-pipeline/stage-in" xmlns:owc="http://www.opengis.net/owc/1.0">
<owc:operation code="NbView" href="" method="GET" type="text/html" />
<owc:content href="https://store.terradue.com/fbrito/_results/workflows/ec_better_dcs_better_wfp_00001_dcs_better_wfp_00001_1_2_7/run/866b8c32-1654-11e8-9aab-0242ac110002/0001288-
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fabricebrito
fabricebrito / index.html
Created December 16, 2014 11:50
TEP-QuickWin tree
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style>
circle.dataset {
fill: white;
}
circle.ifg {
fill: red;
@fabricebrito
fabricebrito / sentinel1.md
Last active September 24, 2020 06:17
Download ESA Sentinel-1 data from Sentinel-1 Scientific Data Hub (https://scihub.esa.int/dhus/)

Download ESA Sentinel-1 data from Sentinel-1 Scientific Data Hub (https://scihub.esa.int/dhus/)

Create a Sentinel-1 Scientific Data Hub account

Go here: https://scihub.esa.int/dhus/ 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
fabricebrito / grade01.py
Created December 1, 2014 09:56
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 :-)
:Url:
https://gist.github.com/hadim/16e29b5848672e2e497c
:Author:

Copy nbflatten.py 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 nbflatten.py

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 nbdiff.org.