Skip to content

Instantly share code, notes, and snippets.

View MathRobin's full-sized avatar
🌍
<3

Mathieu KIM ROBIN MathRobin

🌍
<3
  • CTO Airporting
  • Pessac, Gironde, France
View GitHub Profile
@MathRobin
MathRobin / ES6 max
Created March 21, 2016 16:22
Config ESlint
{
"globals": {
},
"ecmaFeatures": {
"arrowFunctions": false,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
@MathRobin
MathRobin / readme.md
Created December 30, 2015 14:48
Angular debug by console

Debugging AngularJS Apps from the Console

Access Scopes

angular.element(targetNode).scope();
angular.element(targetNode).isolateScope();

Grab any Services

angular.element(document.querySelector('html')).injector().get('MyService');
@MathRobin
MathRobin / Adblock.list
Created September 9, 2015 13:43
Adblock
@@||mathieurobin.com/$document
@@||mozilla.org/$document
@@||korben.info/$document
@@||mailjet.com/$document
@@||127.0.0.1:3000/$document
@@||capitainesante.fr/$document
@@||inbox.google.com/$document
@@||html2jade.aaron-powell.com/$document
@@||github.io/$document
@@||github.com/$document
@MathRobin
MathRobin / Dependencies
Created December 12, 2014 15:05
Angular sous IE7
Ca nécessite à minima :
html5shiv : https://github.com/aFarkas/html5shiv
base64 : https://code.google.com/p/stringencoders/source/browse/trunk/javascript/base64.js?r=230
JSON 2 : https://github.com/douglascrockford/JSON-js/blob/master/json2.js
Respond : https://github.com/scottjehl/Respond
Polyfills de toutes les méthodes de Array, Object, String, telles que (non exhaustif) :
- Object.keys https://github.com/MathRobin/object.keys
- Object.create https://github.com/MathRobin/object.create
@MathRobin
MathRobin / .jshintrc
Created January 16, 2014 11:39 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@MathRobin
MathRobin / caroussel.html
Created July 2, 2013 15:39
Multiple items exemple pour caroussel bootstrap
<div class="container-fluid">
<div class="row-fluid">
<div class="carousel slide" id="myCarousel">
<div class="carousel-inner">
<div class="item active">
<ul class="thumbnails">
<li class="span3">
<div class="caption">
<h5>Caption</h5>
</div>
/*!
* jQuery UI Bootstrap (0.22)
* http://addyosmani.github.com/jquery-ui-bootstrap
*
* Copyright 2012, Addy Osmani
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Portions copyright jQuery UI & Twitter Bootstrap
*/
@MathRobin
MathRobin / How to...
Last active October 13, 2015 05:48
Val Engine, a validation engine (sync and async validations allowed)
data = {};
data['a'] = '';
data['b'] = 'a';
data['c'] = 'a@';
data['d'] = 'a@a';
data['e'] = 'a@a.';
data['f'] = 'a@htmail.fr';
data['g'] = 'a@hotmail.fr';
valEngine = new ValEngine();
@MathRobin
MathRobin / LICENSE
Created November 8, 2012 15:28
URL parser
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu ROBIN <http://www.mathieurobin.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@MathRobin
MathRobin / HowTo.js
Created October 25, 2012 13:35
Lightweight PubSub constructor
var pubsub = new Pubsub();
pubsub.subscribe("someEvent", function (message) {
console.log('Hello', messge);
});
pubsub.publish("someEvent", "world");
pubsub.unsubscribe("someEvent");