Skip to content

Instantly share code, notes, and snippets.

@jblanche
jblanche / Youtube Video
Created July 20, 2012 21:55
Arduino + Photoresistor + CSS backgrounds
http://www.youtube.com/watch?v=uzksnnDIaQo
@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 / 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 / eventable.js
Created June 27, 2012 14:47 — 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 / fiddle.js
Created March 8, 2012 16:40
Javascript Inheritance and Mixins
/*
This is a test aiming at creating a simple inheritance + mixin capable JS library
using Object.create awesome possibilities.
It's using a single library (https://raw.github.com/jblanche/proto-js/master/Proto.js)
that is only 609 characters minified, and 310b gzipped.
It is heavily based on the original Proto.JS library (https://github.com/rauschma/proto-js).
Simply adding to it an easy way to add mixins to our "Classes".
*/
// This is a Mixin / Module, it can be included by any "Class", whatever the class role.
@jblanche
jblanche / example.js
Created March 8, 2012 16:00
An Example of usage of my proto.js fork
/*
This is a test aiming at creating a simple inheritance + mixin capable JS library
using Object.create awesome possibilities.
It's using a single library (https://raw.github.com/jblanche/proto-js/master/Proto.js) that is only 609 characters minified, and 310b gzipped.
It is heavily based on the original Proto.JS library (https://github.com/rauschma/proto-js).
Simply adding to it an easy way to add mixins to our "Classes".
*/
// This is a Mixin / Module, it can be included by any "Class", whatever the class role.
// It's a plain and simple JS litteral object.
@jblanche
jblanche / examples.rb
Created February 28, 2012 21:34
Inheritance vs Composition
player1.is_better_than(player2)
# or
coach1.is_at_least_as_good_as(coach2)

#programme

  • Historique

    • Brendan Eich
    • Netscape
    • Serveur
  • Différence DOM / JS

    • JS = langage
  • DOM = modification de la structure d'une page web.