Skip to content

Instantly share code, notes, and snippets.


Christophe Porteneuve tdd

View GitHub Profile
mbrehin / pre-commit
Last active Jan 31, 2019
Git hooks: pre-commit
View pre-commit
#! /bin/bash
# If you encounter any error like `declare: -A: invalid option`
# then you'll have to upgrade bash version to v4.
# For Mac OS, see
# Hash using its key as a search Regex, and its value as associated error message
declare -A PATTERNS;
PATTERNS['^[<>|=]{4,}']="You've got leftover conflict markers";
PATTERNS['focus:\s*true']="You've got a focused spec";
tdd /
Created Feb 4, 2017
Learning JavaScript (ES3/ES5) • Quality resources
tdd / Learning and exploring
Last active Nov 10, 2020
Good resources to learn, discover and explore ES6 in-depth
View Learning and exploring


  • ES6 Katas - Small, byte-size exercises to discover most aspects of ES6 features by doing interactive, online exercises. Pretty awesome.
  • Learn ES2015 - A great part of Babel's website that takes you through examples of all supported ES6+ features
  • - Nice ES6 / ES5 comparisons of many ES6 language features
  • ES6 Features - A single-page tour of code examples for just about every ES6 feature, by Luke Hoban

Exploring in-depth

  • ES6 In Depth - A great series of articles on Mozilla Developer Network (MDN); also available in French through great translation efforts.
tdd /
Last active Apr 10, 2022
Angular: Just Say No

Angular: Just say no

A collection of articles by AngularJS veterans, sometimes even core committers, that explain in detail what's wrong with Angular 1.x, how Angular 2 isn't the future, and why you should avoid the entire thing at all costs unless you want to spend the next few years in hell.

Reason for this: I'm getting tired of having to explain to everyone, chief of which all the indiscriminate Google Kool-Aid™ drinkers, why I have never believed in Angular, why I think it'll publicly fail pretty soon now (a couple years), and why it's a dead end IMO. This gist serves as a quick target I can point people to in order not to have to parrot / compile the core of the articles below everytime. Their compounded reading pretty much captures 99% of my view on the topic.

This page is accessible through and, btw.

tdd /
Last active Dec 9, 2015
Quelques ressources pour faire sa veille technique et apprendre mieux autour du web

Lisez plutôt…

cet article détaillé que j'ai écrit ensuite…

Je laisse le Gist ici pour ne pas casser vos liens, mais bon 😄

Par e-mailing/RSS/etc.

Chaque jour ou chaque semaine :

tdd / Apprendre JS
Last active Sep 23, 2020
Quelques ressources valables pour (ré)apprendre JS correctement
View Apprendre JS
View Config indentation etc ST2
"ensure_newline_at_eof_on_save": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
tdd / config-bash-pour-un-prompt-git-de-tueur.bash
Last active Feb 10, 2021
Config Bash pour un prompt Git de tueur
View config-bash-pour-un-prompt-git-de-tueur.bash
# ========================================================
# OPTION 1: If on OSX using Homebrew:
# source $(brew --prefix)/etc/bash_completion.d/
# source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
# OPTION 2: If on OSX using built-in Git (also works on ZSH):
tdd / gitconfig.ini
Last active Sep 28, 2022
Nice, useful global Git configuration
View gitconfig.ini
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
name = Your Full Name
email = your@email.tld
# Enable colors in color-supporting terminals
ui = auto
# List available aliases