Skip to content

Instantly share code, notes, and snippets.

🌍
<3

Mathieu KIM ROBIN MathRobin

🌍
<3
  • /dev/null
Block or report user

Report or block MathRobin

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
View ES6 max
{
"globals": {
},
"ecmaFeatures": {
"arrowFunctions": false,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
@MathRobin
MathRobin / readme.md
Created Dec 30, 2015
Angular debug by console
View readme.md

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');
View Adblock.list
@@||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
View Dependencies
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
View .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 Jul 2, 2013
Multiple items exemple pour caroussel bootstrap
View caroussel.html
<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>
View twtbt-jquery-ui.css
/*!
* 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 Oct 13, 2015
Val Engine, a validation engine (sync and async validations allowed)
View How to...
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();
View LICENSE
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 Oct 25, 2012
Lightweight PubSub constructor
View HowTo.js
var pubsub = new Pubsub();
pubsub.subscribe("someEvent", function (message) {
console.log('Hello', messge);
});
pubsub.publish("someEvent", "world");
pubsub.unsubscribe("someEvent");
You can’t perform that action at this time.