Skip to content

Instantly share code, notes, and snippets.

Cameron Foale cocoademon

Block or report user

Report or block cocoademon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View indexing_time.py
import timeit
import random
import itertools
import numpy as np, numpy.random as rnd
num_states = 200000
num_actions = 10
@cocoademon
cocoademon / Shake.js
Last active Dec 27, 2015
Simple "Shake" plugin for Phaser 1.1.3 with postUpdate
View Shake.js
/* Simple "Shake" plugin */
/* Use it like: */
var shake = new Phaser.Plugin.Shake(game);
game.plugins.add(shake);
shake.shake(40); // 40 pixels max displacement
/*
You can’t perform that action at this time.