Skip to content

Instantly share code, notes, and snippets.

Christophe Porteneuve tdd

Block or report user

Report or block tdd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tdd
tdd / settings.json
Created Dec 5, 2018
Disable Pipe key for Bookmarks on OSX VS Code
View settings.json
{
"key": "shift+alt+l",
"command": "-bookmarks.expandSelectionToNext",
"when": "editorTextFocus"
},
@tdd
tdd / GitHub with Operator Mono font for code.md
Created Apr 24, 2017
Use Operator Mono Ssm font in GitHub code views (PRs, diffs, etc.)
View GitHub with Operator Mono font for code.md

So you love the Operator Mono font? I don't blame you! So do we! It's a bit pricey but worth every penny.

In fact, we're so used to it in our editors that we were a bit sad with GitHub's otherwise neat code views. When we review PRs in the web UI, we want our Operator Mono!

So, assuming you have it installed on your machine, you can put the JS bit in the other code snippet of this Gist in a bookmarklet, and click it when you're on a GitHub.com page you want to have switch over to our beloved font. We used the ScreenSmart variant here, which you get in the font package and have probably installed, as it's the more legible one on screens. Feel free to adjust the font name if needed.

@tdd
tdd / reasons-i-hate-your-postmaster.md
Created Mar 13, 2017
Don’ts of corporate e-mail address management
View reasons-i-hate-your-postmaster.md

I keep having issues with client e-mail addresses that seem to have been intentionally designed by their IT dept to maximize error rates. I need to vent a bit, so here goes. Star if you can relate 😉

8 reasons why I want to punch your e-mail address policy authors in the face

E-mail addresses at your company…

  1. …don't use the full first or last names, making input confusing and error-prone  - they enforce a max length on one or more naming parts (e.g. with 7 max chars for last name, "David Somewhat" becomes dsomewha@, which looks and feels like a typo, and can't be guessed from prior conversation with John Foobar’s jfoobar@)  - they use oh-so-1990 trigrams (e.g. John Foobar is either jfo or jfr), which is collision-prone and results in numerous irregular overrides  - they separate the first and last name, but abbreviate one of them (e.g. d.somewhat instead of dsomewhat), which looks fugly.
@tdd
tdd / Apprendre et explorer ES2015plus.md
Created Feb 4, 2017
De bonnes ressources pour apprendre, découvrir et explorer ES2015+ en profondeur
View Apprendre et explorer ES2015plus.md

Apprendre

  • ES6 Katas - De petits exercices courts pour découvrir la plupart des aspects des fonctionnalités ES2015+ de façon interactive. Plutôt top.
  • Learn ES2015 - Une partie géniale du site web de Babel qui déroule des exemples de toutes les fonctionnalités ES2015+ prises en charge.
  • ES6-Features.org - Chouette comparaison point à point de codes utilisant ES2015+ et de leur équivalent ES5.
  • ES6 Features - Une revue rapide, sur une page unique, des fonctionnalités ES2015 à coup d'exemples de code, par Luke Hoban.

Explorer en profondeur

  • ES6 In Depth - Super série d’articles sur le Mozilla Developer Network (MDN) ; également disponible en français grâce à un considérable effort de traduction.
@tdd
tdd / learning-js.md
Created Feb 4, 2017
Learning JavaScript (ES3/ES5) • Quality resources
View learning-js.md
@tdd
tdd / es2015-proxies-array-negative-indices.js
Created May 25, 2016
Negative indices on arrays using ES2015 proxies
View es2015-proxies-array-negative-indices.js
function yay(array) {
return new Proxy(array, {
get (target, property, receiver) {
if (property < 0) {
property = target.length + Number(property)
}
return Reflect.get(target, property, receiver)
}
})
}
@tdd
tdd / Learning and exploring ES6.md
Last active Mar 18, 2019
Good resources to learn, discover and explore ES6 in-depth
View Learning and exploring ES6.md

Learning

  • 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
  • ES6-Features.org - 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
tdd / index.html
Created Oct 19, 2015
HTML pour formation Git
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Formation Git</title>
</head>
<body>
<h1>Formation Git</h1>
</body>
</html>
View keybase.md

Keybase proof

I hereby claim:

  • I am tdd on github.
  • I am porteneuve (https://keybase.io/porteneuve) on keybase.
  • I have a public key whose fingerprint is 4158 4B60 C64C BEC9 D680 C01E F68C 6547 0C78 E0E5

To claim this, I am signing this object:

@tdd
tdd / git-bash-prompt.bash
Created Jul 16, 2015
Bash prompt configuration for Git’s built-in prompt features
View git-bash-prompt.bash
# STEP 1: ENSURE COMPLETION AND PROMPT FUNCTION ARE LOADED
# ========================================================
# OPTION 1: If on OSX using Homebrew:
#
# source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
# source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
# OPTION 2: If on OSX using built-in Git (also works on ZSH):
#
You can’t perform that action at this time.