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
View README.md

Installation

npm install i18n-js

Usage

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

View CurvytronEvents.md

Curvytron events

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

[name, data, callbackID]

Get client ID

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

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
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
Tom32i / Inventory.php
Created Jan 15, 2016
Doctrine Event Inventory
View Inventory.php
<?php
namespace EventBundle\Utils;
/**
* Inventory
*/
class Inventory
{
/**
View AdiumTheme.md
@Tom32i
Tom32i / README.md
Last active Oct 13, 2015
A node.js + browser compatible benchmark suite
View README.md

Benchmark in node.js & browser

Install

npm install 

Usage:

Node:

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