Skip to content

Instantly share code, notes, and snippets.

View ooflorent's full-sized avatar

Florent Cailhol ooflorent

  • Toulouse, France
  • 03:23 (UTC +02:00)
  • X @ooflorent
View GitHub Profile
@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 / 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>
@ooflorent
ooflorent / grid.css
Created November 5, 2014 15:40
Flexbox grid
.grid {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.grid-col--auto,
.grid-col--1,
.grid-col--2,
.grid-col--3,
@ooflorent
ooflorent / emitter.js
Created December 3, 2014 10:11
Simple ES6 emitter
class Listener {
constructor(fn, ctx) {
this.fn = fn
this.ctx = ctx
}
}
class Emitter {
listen(fn, ctx) {
this.listeners.push(new Listener(fn, ctx))
@ooflorent
ooflorent / sparse_array.md
Last active August 29, 2015 14:13
Questions about sparse arrays

Are the following arrays sparse?

Created using fixed length

var a = new Array(200)
a[50] = {}

Resized using length

alias d8ir="d8 \
--trace-hydrogen \
--trace-phase=Z \
--trace-deopt \
--code-comments \
--hydrogen-track-positions \
--redirect-code-traces \
--redirect-code-traces-to=code.asm"