Skip to content

Instantly share code, notes, and snippets.

@jblanche
jblanche / install.rdf
Created November 28, 2011 10:58
install.rdf
<?xml version="1.0" encoding="UTF-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>enjoyreading@jblanche.fr</em:id>
<em:type>2</em:type>
<em:name>Enjoy Reading</em:name>
<em:version>0.2.2</em:version>
<em:creator>Jonathan Blanchet</em:creator>
<em:contributor></em:contributor>
<em:iconURL>chrome://enjoyreading/skin/logo.png </em:iconURL>
@jblanche
jblanche / 1-potentiometre.js
Created July 19, 2012 22:20
Arduino + potentiometer + particles
var five = require('johnny-five'),
io = require('socket.io').listen(8080),
board, potentiometer;
board = new five.Board();
board.on("ready", function() {
// Create a new `potentiometer` hardware instance.
potentiometer = new five.Sensor({
@jblanche
jblanche / Youtube Video
Created July 19, 2012 17:22
Arduino + WebSockets + CSS
http://www.youtube.com/watch?v=aYFOOr1amSg&feature=plcp
@jblanche
jblanche / Youtube Video
Created July 19, 2012 17:11
Arduino + Websockets + particles
http://www.youtube.com/watch?v=MXEGLGmpCfo
@jblanche
jblanche / Appartement.md
Last active May 20, 2017 11:35
Liste des documents du pré état-daté
  • Le règlement de copropriété ainsi que toutes les modifications dont il a fait l’objet depuis sa création
  • Les procès-verbaux des 3 dernières années
  • Le carnet d’entretien de l’immeuble (obligatoire depuis le 1er janvier 2002)
  • Les diagnostics techniques concernant les parties communes, y compris le DPE de l’immeuble s’il a été fourni (obligatoire pour les immeubles de plus de 50 lots avec chauffage collectif)
  • Les derniers budgets votés ainsi que les comptes de l’immeuble des deux dernières années (joints à la convocation de l’Assemblée Générale)
  • La situation des impayés au 31 décembre de l’année écoulée (annexes comptables jointes également à la convocation de l’AG)
  • Le montant de l’avance de trésorerie (systématiquement noté sur les appels de fonds provisionnels et sur le récapitulatif des charges de l’année écoulée)
  • Le montant des provisions travaux s’il a été voté en AG (apparaissant dans l’appel de charges provisionnelles)
  • La position comptable du copropri
@jblanche
jblanche / esnextbin.md
Last active May 4, 2017 12:04
esnextbin sketch
@jblanche
jblanche / index.js
Last active May 4, 2017 11:44
requirebin sketch
var json2csv = require('json2csv');
const fields = ['id', 'newId', 'value']
const data = [
{ id: 1, value: 'foo' },
{ id: 2, value: '"bar,baz"' },
{ id: 3, value: '=-2+3+cmd|\' /C calc\'!A0' },
]
var classic = json2csv({ data: data, fields: fields});
@jblanche
jblanche / eventable.js
Created June 27, 2012 14:51 — forked from anonymous/eventable.js
eventable.js
var Eventable =
{
addEventListener: function(type, listener)
{
if (this.eventMap == null)
this.eventMap = {};
var list = this.eventMap[type];
if (list == null)
{
list = [];
@jblanche
jblanche / comparison.md
Last active March 29, 2016 17:40
Should I use Angular / Backbone or Ember ?

AngularJS

Pros

  • Perfect for complex "client-side" application, where the complexity is more in the way "components" of an app interacts with each other than in the way they sync and or interact with a backend.
  • Very clean separation of concerns
  • Uses concepts that kind of look likes the future of HTML/DOM (DOM templates, binding attributes…).

Cons

  • A bit complicated to grasp. A lot of new concepts.
@jblanche
jblanche / check_ins.hbs
Created January 16, 2014 14:54
checkins
{{#each . }}
<li class="">
<div class="icon"><img src="{{icon}}" alt="" class="img-responsive"></div>
<div class="details">
<strong title="{{name}}">{{name}}</strong>
<time>{{stamp}}</time>
<address>{{vicinity}}</address>
<cite>{{userName}}</cite>
{{#if comment}}
<q>{{comment}}</q>