Skip to content

Instantly share code, notes, and snippets.

Thomas Jarrand Tom32i

Block or report user

Report or block Tom32i

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


npm install i18n-js


Import just translations.js once in your main file, then use I18n everywhere.


Curvytron events

Events are JSON arrays, sent through websocket connexion, following that format:

[name, data, callbackID]

Get client ID

View index.html
<!DOCTYPE html>
<title>Okeanos Explorer 2016 Livestream</title>
body, * {
margin: 0;
padding: 0;
font-size: 0;
background: #000000;
Tom32i /
Last active Feb 15, 2016
CFP 2016
Tom32i / Pocky.php
Last active Feb 4, 2016
Lazy Pocky
View Pocky.php
namespace Lazy;
class Pocky
private function __construct()
dump("Lazy Pocky");
Tom32i /
Last active Jan 29, 2016
Quickly serve a local directory with PHP built-in server.

Quickly serve a local directory

php -S localhost:8000

You directory is accessible on: http://localhost:8000

Create an alias for it

In ~/.bashrc add:

Tom32i / Car.js
Created Jan 15, 2016
Faut-il nommer les "méthodes" des prototypes ?
View Car.js
function Car (color)
this.color = color;
// Fonction anonyme?
Car.prototype.getColor = function()
return this.color;
Tom32i / Inventory.php
Created Jan 15, 2016
Doctrine Event Inventory
View Inventory.php
namespace EventBundle\Utils;
* Inventory
class Inventory
Tom32i /
Last active Oct 13, 2015
A node.js + browser compatible benchmark suite

Benchmark in node.js & browser


npm install 



node benchmark.js
You can’t perform that action at this time.