Skip to content

Instantly share code, notes, and snippets.

View yannickcr's full-sized avatar

Yannick Croissant yannickcr

View GitHub Profile
@yannickcr
yannickcr / .eslintrc
Created June 12, 2017 11:45
Disallow typeof v === 'undefined'
"rules": {
"no-restricted-syntax": [
"error", {
"selector": "BinaryExpression[left.operator='typeof'][right.value='undefined']",
"message": "There's no reason to do that in our codebase ;)"
}
]
}
@yannickcr
yannickcr / 1.Readme.md
Last active October 28, 2019 13:14
Testing ES6 React components with Gulp + Mocha + Istanbul

Testing ES6 React components with Gulp + Mocha + Istanbul

Recipe to test your ES6 React components.

$ npm install gulp gulp-util gulp-mocha gulp-istanbul isparta run-sequence babel jsdom

Note: You must name all your files .js, even if they contains JSX, or istanbul will not instrument them.

@yannickcr
yannickcr / .gitconfig
Last active May 24, 2016 15:35
Git Alias for Gerrit
[alias]
patch = commit --amend --no-edit --reset-author
yolo = commit --amend --no-edit --reset-author --no-verify
update = pull --ff-only
draft = !sh -c 'git push origin HEAD:refs/drafts/master/${1-bugfix}' -
publish = !sh -c 'git push origin HEAD:refs/for/master/${1-bugfix}' -
@yannickcr
yannickcr / Resources.md
Last active September 15, 2016 09:31
React.js Conf 2015 - From the Internet
@yannickcr
yannickcr / paris-nodejs-npm.md
Created November 20, 2014 23:19
Gestion des dépendances avec npm

Gestion des dépendances avec npm

Node.js Paris, 20 Novembre 2014


Les différents types de dépendances

Project
@yannickcr
yannickcr / react.svg
Created October 14, 2014 21:42
React logo in SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yannickcr
yannickcr / Readme.md
Created September 5, 2014 11:29
jQuery 1.9.1 + Browserify

jQuery 1.9.1 + Browserify

Install jQuery 1.9.1 and Browserify-shim

npm install [email protected] --save
npm install browserify-shim --save-dev

Add the following entries in your package.json

@yannickcr
yannickcr / keybase.md
Created August 19, 2014 22:30
keybase.md

Keybase proof

I hereby claim:

  • I am yannickcr on github.
  • I am yannickcr (https://keybase.io/yannickcr) on keybase.
  • I have a public key whose fingerprint is EB1F 634D A427 2CCB 9FFB 3D90 4051 617A 90BB 18D8

To claim this, I am signing this object:

@yannickcr
yannickcr / .jscsrc
Created June 2, 2014 00:13
.jscsrc
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"case",
@yannickcr
yannickcr / 1.readme.md
Created May 1, 2014 17:12
Testing SockJS iframe-htmlfile transport under IE8
  • SockJS-node is running on 192.168.0.21:8081
  • Sending a message from the main page works everywere
  • Sending a message from the iframe or popup does not works in IE8