Skip to content

Instantly share code, notes, and snippets.

View Tom32i's full-sized avatar

Thomas Jarrand Tom32i

View GitHub Profile
@devster
devster / php_setget.sublime-snippet
Last active August 29, 2015 13:55
PHP setter/getter snippet for sublime text
<snippet>
<content><![CDATA[
/**
* Set ${1:property}
*
* @param ${2:type} \$$1
*
* @return ${3:Type}
*/
public function set${1/^([a-z])/\u$1/g}(\$$1)
@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 / 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

@Tom32i
Tom32i / Key Bindings - User.json
Last active January 4, 2019 09:40
Sublime Text 3 Base configuration
[
{ "keys": ["super+)"], "command": "indent" },
{ "keys": ["super+("], "command": "unindent" }
]
@sebasten
sebasten / trailersE32018.md
Last active August 12, 2019 22:51
Videos E3 2018
@sebasten
sebasten / E32017.md
Last active August 12, 2019 22:52
E3 2017
@maximecolin
maximecolin / MyController.php
Created February 16, 2015 11:26
Symfony2 : add translated flash with parameters, domain or locale
<?php
namespace Acme\DemoBundle;
use Symfony\Bundle\FrameworkBundle\Controller\Controller
class MyController extends Controller
{
/**
* @Template()
@Bimdata-io
Bimdata-io / bimdata-recrute.md
Last active July 29, 2020 14:46
BIMData.io recrute un·e dev JS front

BIMData.io recrute un·e dev JS front

BIMData.io recrute un·e dev JS front pour consolider notre équipe et développer des produits et des outils autour de nos technos développées en interne.

Nous développons des outils pour récupérer, lire, modifier et exploiter les informations d'un bâtiment qui seront intégrés dans les logiciels des différents métiers du bâtiment. Nous utilisons les Web API modernes (Firefox 69 et +, pas de support IE/edge) sur une base de code propre. Tu pourras voir ce qu'on fait sur https://platform.bimdata.io et une partie de notre code est disponible en open source sur https://github.com/bimdata.

L'équipe

@jonathantneal
jonathantneal / README.md
Created September 19, 2012 06:34
Polyfill the EventListener interface in IE8

EventListener Polyfill

Is IE8 your new IE6? Level the playing field with polyfills.

This script polyfills addEventListener, removeEventListener, and dispatchEvent. It is less than half a kilobyte minified and gzipped.

addEventListener

addEventListener registers a single event listener on a single target.

@hyb175
hyb175 / realmMock.js
Last active August 13, 2023 17:41
Realm Mock for jest
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466
export default class Realm {
constructor(params) {
this.schema = {};
this.callbackList = [];
this.data = {};
this.schemaCallbackList = {};
params.schema.forEach((schema) => {
this.data[schema.name] = {};
});