Skip to content

Instantly share code, notes, and snippets.

View Tom32i's full-sized avatar

Thomas Jarrand Tom32i

View GitHub Profile
@Tom32i
Tom32i / AdiumTheme.md
Created December 8, 2015 08:40
Adium Theme
@Tom32i
Tom32i / README.md
Last active October 13, 2015 09:57
A node.js + browser compatible benchmark suite

Benchmark in node.js & browser

Install

npm install 

Usage:

Node:

node benchmark.js

<?php
namespace Acme\Serializer\Normalizer;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer;
@Tom32i
Tom32i / gzip.conf
Created September 9, 2015 08:26
GZIP config for Nginx
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_min_length 256;
gzip_comp_level 6;
@Tom32i
Tom32i / ArrayCollection.js
Last active August 29, 2015 14:24
Collection: Array vs Object?
/**
* ArrayCollection
*/
function ArrayCollection()
{
this.ids = [];
this.items = [];
}
/**
@Tom32i
Tom32i / README.md
Last active August 29, 2015 14:15
A very simple script to display the IP of my RaspberyPi

Tom32i's Pi boot:

Installation:

Clone the projet:

cd ~
git clone git@gist.github.com:/ad7dd2f30fbff5747522.git boot

Setup correct rights:

Keybase proof

I hereby claim:

  • I am tom32i on github.
  • I am tom32i (https://keybase.io/tom32i) on keybase.
  • I have a public key whose fingerprint is 2810 CAEA A0DC 73B9 499A 33AE 6B69 B873 EA2B 1759

To claim this, I am signing this object:

@Tom32i
Tom32i / elao.txt
Created July 8, 2014 14:26
-~=[ elao ASCII ]=~-
+-----------------------------------------------------------------------------+
| |
| A0. 0000 |
| AAV 0000 |
| AAV 0000 |
| _.n0000n._°0Q 0000 _.aaAaa._ _.aaAaa._ |
| .o0AAAAAAAAA0o. 0000 .00000"""00000. .00000"""00000. |
| 0AAP° °QAA0 0000 000° °000 000° °000 |
| 0AV VAA 0000 000 000 000 000 |
@Tom32i
Tom32i / EventEmitter.js
Created June 3, 2014 10:58
Simple EventEmitter Object
/**
* Event Emitter
*/
function EventEmitter ()
{
this.element = document.createElement('div');
}
/**
* Emit a new event
@Tom32i
Tom32i / Choice.js
Last active August 29, 2015 13:57
Simple Select choice filtering system
/**
* Choice
*
* @param {Sring} id
*/
function Choice(id)
{
this.element = $(document.getElementById(id));
this.choices = [];