Skip to content

Instantly share code, notes, and snippets.

@AlJohri
AlJohri / .block
Last active May 6, 2018 — forked from mbostock/.block
Bubble Chart
View .block
license: gpl-3.0
height: 940
border: no
@AlJohri
AlJohri / colourised_log_example.py
Created May 6, 2016 — forked from exhuma/colourised_log_example.py
Simple python log formatter for colourised terminal output.
View colourised_log_example.py
"""
Example for a colourised logging output.
This example uses "blessings" to handle console escape sequences. ``blessings``
itself is a very harmless package in that it does not have any external
dependencies. And it's code-base is very clean and small.
The example extends the core logging formatter (logging.Formatter) and
colourises the complete line. This takes advantage of any upstream updates
related to logging. When writing this against Python 2.7, the parent code