Skip to content

Instantly share code, notes, and snippets.

View philippemiron's full-sized avatar

Philippe Miron philippemiron

View GitHub Profile
@jpivarski
jpivarski / _Converting Argo data from NetCDF4 to Parquet.md
Created May 2, 2022 18:52
Converting Argo data from NetCDF4 to Parquet

First, I fetched all of the Argo data up through 2021 via ftp:

wget -r ftp://ftp.ifremer.fr/ifremer/argo

# wait a long time

tree ftp.ifremer.fr
└── ifremer
 └── argo
@deeplycloudy
deeplycloudy / getbib.sh
Created March 24, 2020 16:47
Use dx.doi.org service to get a BibTeX-formatted reference from a DOI.
#!/bin/bash
# | pbcopy; pbpaste are mac-only commands; delete to simply print to the shell.
# Use: getbib $DOI where $DOI is something like 10.xxx/xxxxxx
getbib(){
curl -LH "Accept:text/bibliography; style=bibtex" http://dx.doi.org/$1 2>/dev/null | cut -c 2- | pbcopy ; pbpaste
}
@tibordp
tibordp / variant.cc
Last active May 7, 2024 02:40
A simple variant type implementation in C++
#include <iostream>
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <string>
template <size_t arg1, size_t ... others>
struct static_max;
template <size_t arg>