Skip to content

Instantly share code, notes, and snippets.

View ooflorent's full-sized avatar

Florent Cailhol ooflorent

  • Toulouse, France
  • 18:41 (UTC +01:00)
  • X @ooflorent
View GitHub Profile
@ooflorent
ooflorent / README.md
Last active December 23, 2015 23:49
Strange performance results with makr.js. Could someone explain the third test results?
@ooflorent
ooflorent / demo.js
Created January 8, 2014 10:39
Basic ECS
// Components
// ----------
function KeyboardController() {}
function AIController() {}
function Position(x, y) {
this.x = x || 0;
this.y = y || 0;
}
var Token = {
Concatenate: '0',
Increment: '1',
Decrement: '2',
Multiply: '3',
Divide: '4',
Add: '5',
Subtract: '6',
Exponent: '7',
Modulus: '8',
@ooflorent
ooflorent / game.js
Created May 27, 2014 08:13
Lowrezjam Phaser bootstrap
var MightyOoze = {
width: 256,
height: 256,
pixelCanvas: null,
pixelContext: null
};
MightyOoze.Boot = function() {};
MightyOoze.Boot.prototype = {
create: function() {
{
"installed_packages":
[
"DocBlockr",
"EditorConfig",
"SideBarEnhancements",
"Theme - Spacegray"
]
}
@ooflorent
ooflorent / LICENSE
Last active August 29, 2015 14:05
Helper for `requestAnimationFrame`
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 Florent Cailhol <https://github.com/ooflorent>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ooflorent
ooflorent / LICENSE
Last active April 18, 2018 03:55
Seeded random number generator
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 Florent Cailhol <https://github.com/ooflorent>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ooflorent
ooflorent / README.md
Last active August 29, 2015 14:05
Simple cursor selection

cursor

Change your mouse cursor without pain.

New API

var cursor = require('./cursor2');

cursor(); // Use 'default'
@ooflorent
ooflorent / README.md
Last active August 29, 2015 14:05
Awesome minify
machine github.com
login <username>
password <token>
machine api.github.com
login <username>
password <token>