This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
barDemo.selectAll("rect"). | |
data(data). | |
enter(). | |
append("svg:rect"). | |
attr("x", function(datum, index) { return x(index); }). | |
attr("y", function(datum) { return height - y(datum.books); }). | |
attr("height", function(datum) { return y(datum.books); }). | |
attr("width", barWidth). | |
attr("fill", "#2d578b"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var startEmulator = function (rom) { | |
var engine = Virtjs.create(Virtjs.engine.GameBoy, { | |
devices : { | |
screen : new Virtjs.screen.WebGL(), | |
input : new Virtjs.input.Keyboard({ map : map }), | |
timer : new Virtjs.timer.RAFrame(), | |
data : new Virtjs.data.LocalStorage() | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
result=0 | |
cd "$(git rev-parse --show-toplevel)" | |
# Stash the current changes, so that we preserve them | |
git stash -q --keep-index | |
# Get the list of changed files from the index |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[[0.03100680559873581,0.03100680559873581,0.02847377024590969,0.028717918321490288,0.028717918321490288,0.03024384379386902,0.026612140238285065,0.03265480697154999,0.03265480697154999,0.020966216921806335,0.021820735186338425,0.006317331455647945,0.006317331455647945,-0.056581318378448486,-0.06955168396234512,-0.061342205852270126,-0.061342205852270126,-0.06695760786533356,-0.0632648691534996,-0.06482131779193878,-0.06482131779193878,-0.06433302164077759,-0.0640278309583664,-0.0636310949921608,-0.0636310949921608,-0.07016205042600632,-0.07663197815418243,-0.07492294162511826,-0.07492294162511826,-0.07525864243507385,-0.07513657212257385,-0.07480086386203766,-0.07480086386203766,-0.07473982870578766,-0.07477034628391266,-0.07412946224212646,-0.07412946224212646,-0.07473982870578766,-0.07379375398159027,-0.07379375398159027,-0.07422101497650146,-0.08294931054115295,-0.08606220036745071,-0.08606220036745071,-0.08520767837762833,-0.08474989980459213,-0.08560442179441452,-0.08560442179441452,-0.08319345861673355 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @class foo | |
*/ | |
var foo = function () { | |
/** | |
* Stop, hammertime. | |
* @member foo | |
* @returns 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @class | |
*/ | |
var foo = function () { | |
/** | |
* Stop, hammertime. | |
* | |
* @memberOf foo# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @mixin foo | |
*/ | |
var foo = { | |
/** | |
* Does something. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Chaque fonction est un constructeur | |
var Foo = function ( ) { this.bar = 'hello world'; }; | |
var instance = new Foo( ); | |
console.log( instance.bar ); // "hello world" | |
// Chaque fonction possède un prototype | |
var Foo = function ( ) { }; | |
Foo.prototype.bar = 'hello world'; | |
var instance = new Foo( ); | |
console.log( instance.bar ); // "hello world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Usage : | |
# $> sudo set-python-version 2; python -V | |
# Python 2.7.2 | |
# $> sudo set-python-version 3; python -V | |
# Python 3.2.2 | |
python=$(which python) | |
pythonX=$(which python$1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class StringRandomizer { | |
public function process( $text ) { | |
return preg_replace_callback('/\{(((?>[^\{\}]+)|(?R))*)\}/x', array( $this, 'replace' ), $text ); | |
} | |
public function replace( $text ) { | |
$text = $this->process( $text[ 1 ] ); |
OlderNewer