Skip to content

Instantly share code, notes, and snippets.

View CamilleMo's full-sized avatar

Camille Moatti CamilleMo

View GitHub Profile
@CamilleMo
CamilleMo / mkDocsMermaid.md
Last active January 11, 2020 19:14
How to create a mkdocs site with mermaid

Install MkDocs

pip install mkdocs

Activate Mermaid

Add the javascript file in the yml :

site_name: My Docs 
@CamilleMo
CamilleMo / Dockerfile
Last active January 11, 2020 19:04
Custom Dockerfile adds jupytext and graphviz # docker # graphviz # jupytext # dot # dockerfile
# Copyright (c) Camille Moatti.
# Distributed under the terms of the BSD License.
ARG BASE_CONTAINER=jupyter/datascience-notebook
FROM $BASE_CONTAINER
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python-pydot \
@CamilleMo
CamilleMo / gist:563d315109bd6b222cfb0a6a182cd6a1
Created January 24, 2020 19:19
How to display nice tree with Git
git config --global alias.tree 'log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"'
Then:
git tree