Skip to content

Instantly share code, notes, and snippets.

View makoponi's full-sized avatar

Marco Bonifacio makoponi

View GitHub Profile
@makoponi
makoponi / Iterable parser
Last active May 18, 2021 13:39
A parser for nested iterables in Python
from collection import namedtuple
def parser(iterable, _result=[], _level=0):
"""Parse a nested iterable (dict of dicts, dict of lists, list of dicts, list of lists).
:param iterable: A iterable to be parsed
:type iterable: dict or list
:return: A list of filterable nodes (namedtuples)
:rtype: list
"""
@makoponi
makoponi / .block
Last active September 27, 2018 10:02
Markit Composite PMI for selected countries 2016 - 2018
license: MIT
height: 600
@makoponi
makoponi / .block
Created September 27, 2018 09:48
Italian open mutual funds net inflows 2012 - 2018
license: MIT
height: 600
@makoponi
makoponi / .block
Last active September 27, 2018 09:48
Italian open mutual funds assets under management 2012 - 2018
license: MIT
height: 600
# Author: Marco Bonifacio (forked from Randal S. Olson (randalolson.com / @randal_olson))
# Uses Tableau's Tableau10 color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@makoponi
makoponi / tableau10light.mplstyle
Created April 21, 2017 10:07
Matplotlib style using Tableau's Tableau10Light color scheme
# Author: Marco Bonifacio (HT Randal S. Olson (randalolson.com / @randal_olson))
# Uses Tableau's Tableau10Medium color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@makoponi
makoponi / tableau10medium.mplstyle
Created April 21, 2017 09:57
Matplotlib style using Tableau's Tableau10Medium color scheme
# Author: Marco Bonifacio (HT Randal S. Olson (randalolson.com / @randal_olson))
# Uses Tableau's Tableau10Medium color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@makoponi
makoponi / tableau20.mplstyle
Last active April 21, 2017 10:01 — forked from rhiever/tableau20.mplstyle
Matplotlib style using Tableau's Tableau20 color scheme
# Author: Marco Bonifacio (forked from Randal S. Olson (randalolson.com / @randal_olson))
# Uses Tableau's Tableau20 color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@makoponi
makoponi / tableau10.mplstyle
Last active April 21, 2017 10:00 — forked from rhiever/tableau10.mplstyle
Matplotlib style using Tableau's Tableau10 color scheme
# Author: Marco Bonifacio (forked from Randal S. Olson (randalolson.com / @randal_olson))
# Uses Tableau's Tableau10 color scheme
figure.figsize: 12, 7
figure.edgecolor: white
figure.facecolor: white
lines.linewidth: 2.5
lines.markeredgewidth: 0
lines.markersize: 10
@makoponi
makoponi / gist:8864295
Created February 7, 2014 15:01
Turismo in Italia
{
"metadata": {
"name": "Turismo Italia"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{