Skip to content

Instantly share code, notes, and snippets.

View lbdremy's full-sized avatar

Remy Loubradou lbdremy

View GitHub Profile
@lbdremy
lbdremy / jquery-aplus-test-adapter.js
Last active December 30, 2015 06:48
jQuery adaptor for the promises aplus test https://github.com/promises-aplus/promises-tests with a modified version of the jquery node module (use jquery 2.0.3) - result at the bottom 59 passing - 781 failing.
var $ = require('jquery');
console.log('jQuery version: ' + $.fn.jquery);
exports.resolved = function (value) {
return $.Deferred().resolve(value);
};
exports.rejected = function (reason) {
return $.Deferred().reject(reason);
};
@lbdremy
lbdremy / test-r2d3.html
Last active December 28, 2015 03:09
Test r2d3
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.arc path {
stroke: #fff;
@lbdremy
lbdremy / aight-breaks-leaflet-directive.html
Last active December 22, 2015 19:59
aight breaking angular directive leaftlet on IE 8
<html xmlns:ng="http://angularjs.org" id="ng-app" class="ng-app:demoapp" ng-app="demoapp" ng-controller="DemoController">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="https://rawgithub.com/tombatossals/angular-leaflet-directive/master/src/angular-leaflet-directive.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<script src="https://rawgithub.com/shawnbot/aight/master/aight.js"></script>
@lbdremy
lbdremy / jquery-only.html
Last active December 22, 2015 19:39
Jquery only test
<html xmlns:ng="http://angularjs.org" id="ng-app" class="ng-app:demoapp" ng-app="demoapp" ng-controller="DemoController">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
</head>
<body>
</body>
</html>
@lbdremy
lbdremy / sample.html
Created September 9, 2013 16:33
working example for angular + leaflet + angular-leaflet-directive on IE8!
<html xmlns:ng="http://angularjs.org" id="ng-app" class="ng-app:demoapp" ng-app="demoapp" ng-controller="DemoController">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="https://raw.github.com/tombatossals/angular-leaflet-directive/master/src/angular-leaflet-directive.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<script>

Ce texte sur son expérience syrienne a été publié le 1er juillet 2013, sur le site de la 'Columbia Journalism Review', par Francesca Borri, journaliste indépendante italienne, par ailleurs auteur d'un livre sur le Kosovo et d'un autre sur les rapports entre Israéliens et Palestiniens intitulé 'Quelqu'un avec qui parler' (Manifestolibri, 2010). Il a suscité de très nombreuses réactions, auxquelles Francesca Borri a elle-même répondu sur le site du 'Guardian'. Il nous a semblé qu'il méritait d'être traduit en français.  Il m’a finalement écrit. Voilà plus d’un an que je lui envoie des articles à la pige. Pour lui, j’ai attrapé la typhoïde et reçu une balle dans le genou. Aujourd’hui, mon rédacteur en chef a regardé les infos et a pensé que je faisais partie des journalistes italiens qui ont été kidnappés. Il m’a envoyé un e-mail: «Si tu trouvais une connexion, pourrais-tu tweeter ta captivité ?» Le même jour, dans la soirée, j’ai retrouvé le camp rebelle où je vivais, au beau milieu de cet enfer qui s’appell

Welcome to Open Data Protocols This site is a the home of simple protocols and formats for working with open data. Our mission is both to make it easier to develop tools and services for working with data, and, to ensure greater interoperability between new and existing tools and services. Work topics include: Data catalog interoperability - see the Data Catalog Interoperability Protocol Data packages, publication and installation - see the Data packages spec Simple formats for facilitating data exchange over the web - see the Simple Data Format Web-oriented data APIs including those for accessing and querying data An overview of sharing and syncing data changes - see Protocols for sharing and syncing data Webhooks and webservices for data transformation

@lbdremy
lbdremy / equipement-rando.md
Last active December 20, 2015 18:49
Equipement pour une randonnée en montagne de 2 jours :)

Equipement pour une randonnée en montagne de 2 jours

Vetements

  • Coupe-vent léger
  • Pull/Polaire
  • extra paire de chaussette
  • un t-shirt supplémentaire
  • un short supplémentaire
  • pantalon
@lbdremy
lbdremy / rules-primary-key-creation.md
Created June 19, 2013 10:51
Rules to follow when creating a primary key

Rules to follow when creating a primary key

  • The primary key must uniquely identify each record.
  • A record’s primary-key value can’t be null.
  • The primary key-value must exist when the record is created.
  • The primary key must remain stable—you can’t change the primary-key field(s).
  • The primary key must be compact and contain the fewest possible attributes.
  • The primary-key value can’t be changed.
@lbdremy
lbdremy / shopify-authentification-flow.md
Last active September 12, 2016 19:49
Shopify authentification flow

Shopify authentification flow

Request URL:http://www.retailtower.com/app/settings/shopify.php?shop=retailer-lambda.myshopify.com&signature=1fa9c810fec17eea99b04ef21204c91b&timestamp=1370278389
Request Method:GET
Status Code:302 Moved Temporarily

Request Headers

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8