Skip to content

Instantly share code, notes, and snippets.

View fdrcslv's full-sized avatar

Federico Silvestri fdrcslv

  • Genova, Italy
View GitHub Profile
@fdrcslv
fdrcslv / test_map.py
Last active January 10, 2019 09:50
test_map.py
import plotly.graph_objs as go
import plotly.io as pio
#orca serve
if __name__ == '__main__':
pio.orca.config.port = 8005
data = [
@fdrcslv
fdrcslv / merge-geojsons.py
Created January 14, 2020 10:13 — forked from themiurgo/merge-geojsons.py
Merge two or more geojson files.
#!/usr/bin/env python
from json import load, JSONEncoder
from argparse import ArgumentParser, FileType
from re import compile
import sys
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$')
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$')