Skip to content

Instantly share code, notes, and snippets.

View akiavara's full-sized avatar

Thibault Desmoulins akiavara

View GitHub Profile
@akiavara
akiavara / git-contribution.py
Last active January 1, 2021 21:25
A python script that generates a report about contributions to a Git repository.
#!/usr/bin/env python
"""Git contributions
Reference: https://gist.github.com/ajardin/b9e0d33ec8c3a3b2874d
The script below allows to have a quick overview of contributions on a Git repository.
Especially useful when we do not have access to graphs like those that we can find on Github.
This script handles three non-mandatory parameters:
@akiavara
akiavara / csv_splitter.py
Created June 22, 2017 09:45
CSV splitter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""CSV splitter
This script is the adaptation of the gist found here (https://gist.github.com/jrivero/1085501/12cc8ff4ee581628c0d62a6ea4922fc09f169219)
in order to split CSV file directly in command line.
## EXAMPLE
- python csv_splitter.py -i my_input_csv.csv -d ';' -t my_output_csv_%s.csv -o ./output-directory -k