Skip to content

Instantly share code, notes, and snippets.

View tdd's full-sized avatar

Christophe Porteneuve tdd

View GitHub Profile
@tdd
tdd / falcons.json
Created January 14, 2020 09:00
Dassault Falcon "JSON" file for mongoimport in MongoDB training session
{ "model": "Falcon 20/200", "intro": 1963, "eol": 1988, "range_nm": 1810, "tags": ["original"] }
{ "model": "Falcon 10/100", "intro": 1970, "eol": 1989, "range_nm": 1920, "tags": ["scaled-down"], "source_model": "Falcon 20/200" }
{ "model": "Falcon 30", "intro": 1973, "eol": 1975, "range_nm": 1150, "tags": ["scaled-up", "prototype"], "source_model": "Falcon 20/200" }
{ "model": "Falcon 40", "intro": 1973, "eol": 1975, "range_nm": 1150, "tags": ["scaled-up", "us-only"], "source_model": "Falcon 20/200" }
{ "model": "Falcon 50", "intro": 1976, "eol": 2008, "range_nm": 3220, "tags": ["trijet"], "source_model": "Falcon 20/200" }
{ "model": "Falcon 900", "intro": 1984, "range_nm": 4750, "tags": ["scaled-up", "trijet"], "source_model": "Falcon 50" }
{ "model": "Falcon 2000", "intro": 1993, "range_nm": 4150, "tags": ["scaled-down", "twinjet"], "source_model": "Falcon 900" }
{ "model": "Falcon 7X", "intro": 2005, "range_nm": 5950, "tags": ["trijet"], "source_model": "Falcon 900" }
{ "model": "Falcon 8X", "intro": 2016
@tdd
tdd / settings.json
Created December 5, 2018 14:41
Disable Pipe key for Bookmarks on OSX VS Code
{
"key": "shift+alt+l",
"command": "-bookmarks.expandSelectionToNext",
"when": "editorTextFocus"
},
@tdd
tdd / GitHub with Operator Mono font for code.md
Created April 24, 2017 15:20
Use Operator Mono Ssm font in GitHub code views (PRs, diffs, etc.)

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 March 13, 2017 10:37
Don’ts of corporate e-mail address management

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 February 4, 2017 18:32
De bonnes ressources pour apprendre, découvrir et explorer ES2015+ en profondeur

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 February 4, 2017 10:59
Learning JavaScript (ES3/ES5) • Quality resources
@tdd
tdd / es2015-proxies-array-negative-indices.js
Created May 25, 2016 08:56
Negative indices on arrays using ES2015 proxies
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 November 10, 2020 09:01
Good resources to learn, discover and explore ES6 in-depth

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 October 19, 2015 09:29
HTML pour formation Git
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Formation Git</title>
</head>
<body>
<h1>Formation Git</h1>
</body>
</html>

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: