Skip to content

Instantly share code, notes, and snippets.

@jblanche
jblanche / parser.coffee
Created May 10, 2011 11:18
the awesome
class Parser
constructor: (el) ->
@html = el
@tracks = []
@parse()
toJSON: ->
{"tracks": @tracks}
parse: ->
➜ second_year git:(master) ls
lib test
➜ second_year git:(master) node --version
v0.4.7
➜ second_year git:(master) npm --version
1.0.9-1
➜ second_year git:(master) npm install vows
[email protected] ../../../node_modules/vows
└── [email protected]
➜ second_year git:(master) ls
@jblanche
jblanche / prog.txt
Created October 11, 2011 15:35
Programme paris web @jblanchefr
Jeudi :
9h10 : KISS dans une grande entreprise ? par Stéphane Deschamps dans le GA
10h10 : Dilemme mais plutôt Les goûts et les couleurs par David Rault dans le GA
11h25 : Optimizing your layout for phones and tablets... par Andreas Bovens dans le GA
12h25 : Je veux un VRAI sous-titrage ! par Sophie Drouvroy dans le GA
14h10 : HTML5 APIs: Where no man has gone before par Robert Nyman dans le GA
15h10 : Dilemme
16h25 : Ouvrir le Web un bug à la fois par Karl Dubost dans le GA
16h50 : Lightning talks par Daniel Glazman et Robin Berjon
@jblanche
jblanche / HelloDartTest.dart
Created October 12, 2011 11:36
Dart Compilation
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Simple test program invoked with an option to eagerly
// compile all code that is loaded in the isolate.
// VMOptions=--compile_all
class HelloDartTest {
static testMain() {
print("Hello, Darter!");
@jblanche
jblanche / helloWorld.coffee
Created October 12, 2011 11:38
Hello World Coffee
class HelloCoffee
constructor: ->
console.log "Hello Coffee"
hc = new HelloCoffee()
@jblanche
jblanche / Consignes.txt
Created October 23, 2011 16:45
eval gobelins
CONSIGNES :
Créer une application informant sur les nouveaux tweets reçus sur Twitter et comprenant le mot "Future".
La partie gauche est en CANVAS.
Les tweets arrivent par la gauche et partent vers la droite, en s'éloignant en profondeur.
La taille de départ du tweet dépend de la taille du message.
La couleur plus ou moins au hasard (par exemple dans un theme kuler).
A droite SVG + HTML/CSS (Je vous laisse choisir quel techno où...)
@jblanche
jblanche / customField.json
Created October 25, 2011 16:40
locomotive customField
{
"_alias" : "test",
"_id" : ObjectId("4ea6d8038538c6c91f000088"),
"_name" : "custom_field_2",
"_type" : "ContentTypeContentField",
"created_at" : ISODate("2011-10-25T15:38:43Z"),
"hint" : "",
"kind" : "string",
"label" : "name",
"position" : 0,
@jblanche
jblanche / README.md
Created November 5, 2011 13:43 — forked from mbostock/.block
D3 Show Reel

The first 15 seconds of the D3 show reel. See full video at http://vimeo.com/29862153. Includes seamless transitions between the following visualization types:

  • lines
  • horizons
  • areas
  • stacked areas
  • streamgraph
  • overlapping areas
  • grouped bars
  • stacked bars
@jblanche
jblanche / capitaine.txt
Created November 16, 2011 00:04
Idées Capitaine Train
2 petites idées d'amélioration du site :
Lorsque je ne sais pas exactement à quelle date je vais voyager (ex : retour en famille pour les fêtes, aux dates interchangeables autour de Noël),
j'aimerais pouvoir :
- indiquer au site que je cherche un voyage entre tel et tel jour pour l'aller et entre tel et tel jour pour le retour.
- Une fois l'aller choisi, pouvoir changer la date du retour sans devoir choisir à nouveau un trajet aller.
Cordialement,
@jblanche
jblanche / typeParams.rb
Created November 22, 2011 23:45 — forked from devboy/typeParams.as
This is not a language flamewar, Haxe really do looks great and one should use the language he feels the more comfortable with. But I wanted to show how Ruby Duck Typing can handle this kind of situations.
# Ruby is using Duck Typing, rather than checking types, Ruby checks if an object can or cannot respond to a method.
# Here is a "port" of the Haxe example in Ruby.
# Ruby is not a compiled language, so that the "easiest" syntax comes with some shortcoming,
# those errors can only be detected at runtime, your favorite IDE won't warn you before :)
ints = [1, 2, 3]
strings = ["a", "bb", "ccc"]
def biggerThan1(x)
x > 1