ansicolortags is a small Python module, supporting both version 2 (2.7+) and 3 (3.4+),
designed to easily and efficiently use ANSI colors
in a terminal application from Python, on UNIX or Linux (or on Windows via Cygwin, or on Mac OS X).

It is available from Pypi (v0.4), and can be install with a simple command: pipinstallansicolortags !

This new package is based on my old ANSIColors-balises, which was too old and only supported Python 2. ANSIColors-balises has been downloaded about 5000 times during march 2013 and February 2016.

A small example of its use (the output is not displayed with colors here because Sphinx does not support including colors in the output of such code samples):

>>> # The good way (and safe) to use ansicolortags:>>> try:… from ansicolortags import printc>>> exceptImportError:… def printc(a): print(a) # Placeholder>>> printc("<red>This is red!<white> That's white.<blue> And that is blue.<reset> (not working here)")This is red! That's white. And that is blue. (not working here)

But in a terminal, this code will give: « This is red!That’s white.And that is blue. (not working here) ».

In particular, autotex is the tiny Bash script I use on a regular basis to write \(\LaTeX{}\) documents without having to manually write the header part (with \usepackage and other useless parts).
I wrote a small autonomize.sh script and a template template_minimalist.tex, to make autonomous a document which was using autotex.

A small game of Tetravex, written in OCaml for a programming course in my Bachelor (3rd year, Avril 2012). I had a grade of 17/20.
Cleaned-up in March 2014, and open-source on my bitbucket account: bitbucket.org/lbesson/projet-puzzle-ocaml-2012.

A tiny library for OCaml, to use the GNU Zenity tool in a simple, efficient and well-typed manner (but the code is dirty).
Open-sourced on my bitbucket account: bitbucket.org/lbesson/zenity-ocaml.

It works « like this » : no need for any installation, you just have to include the source file zenity.ml and zenity.mli in your OCaml project.
For instance, in a OCaml console or in a program:

openZenity;;letmy_color=color_selection~title:"Choose a color please"();;(* Will ask the user to select a color, and return it as a string,it does the same as calling 'zenity --color-selection --title="Choose a color please"', in a terminal. *)

State:

Not actively maintained (April 2014), but it works with the latest versions of OCaml (4.03.0) and Zenity.

A small project, for the Introduction to Machine Learning in my Bachelor (3rd year) at ENS Cachan in May 2013.
Nothing especially interesting, except that I used Python2.7 to handle all the different aspects of this learning project (scripts, programs, documentation, report, slides etc). I had a grade of 15/20.

A small Bomberman game, with multi-player support on a local network (multi machines), written in Python 2.7, between Nov. 2012 and Feb. 2013
for the networking project in my Master 1 (course 1-21 MPRI), for which I received 16.9/20 (second best grade). Open-sourced: bitbucket.org/lbesson/mpri-bomberman.

A tiny OCaml library, designed to draw graphical plots in a console.
This project was implementing a very dirty operators overloading (something that OCaml, a fully statically type language, should NOT allow), and commands for plotting « like Maple »
(e.g., plot("cos((x+5)/2.16)",0--10)), and other cool stuff.
I didn’t find the time to keep it up-to-date.