Skip to content

Instantly share code, notes, and snippets.

View namuol's full-sized avatar

Lou Acresti namuol

View GitHub Profile
Button*
unlocked*
default*
mouseEnter -> hovered
hovered
mouseLeave -> default
mouseDown -> pressed
@namuol
namuol / Dataloader.js
Last active September 20, 2017 02:00 — forked from acdlite/Dataloader.js
Idea for Dataloader component
// The `loader` argument is a Dataloader instance
// https://github.com/facebook/dataloader
const makeLoader = (loader) => {
class Dataloader extends React.Component {
state = {data: null, isLoaded: false};
componentWillMount() {
this.prefetchData(this.props);
}
componentWillReceiveProps(nextProps) {
if (this.props.id !== nextProps.id) {
@namuol
namuol / .block
Last active September 6, 2016 06:32 — forked from monfera/.block
SVG heat shimmer
license: mit
border: no
height: 420
@namuol
namuol / 0hgamedingoo.md
Last active December 28, 2015 01:49 — forked from josefnpat/0hgamedingoo.md
teeny typos

The #0HGame Jam, the Dingoo and LÖVE 0.7.0

At this point, I find it important to reflect on what I have done, because it is a personal achievement for myself in many ways, but also to the LÖVE developers and the open source community. I'd like to say that without the open source community, none of this would have been possible, even remotely.

Context is due, so I will begin where every writer would begin, at the start.

The #0HGame Compo

I'm a big game compo jam participator. Most of the games I have made have been for game jams (Ludum Dare, Bacon Game Jam, and a few other lesser known ones) and I intend on doing more of them. Not only do they provide me with a greater understanding of game design, but they sharpen my game development skills.

var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');
var gistPrefix = 'http://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('p.gist').map(function(n, p) {
p = $(p);