Skip to content

Instantly share code, notes, and snippets.


Georgios Kaleadis georgiee

View GitHub Profile
View binary masks in JS
OtherGameStates = {}
OtherGameStates.GAME_PAUSED = 1 //'0001'
OtherGameStates.USER_PAUSED = 2 //'0010'
SoundStates = {}
SoundStates.USER_MUTED = 4 //'0100'
SoundStates.GAME_MUTED = 8 //'1000'
georgiee / gist:9210520
Created Feb 25, 2014
Emitter body quickfix 2.0 phaser.js
View gist:9210520
diff --git a/src/particles/arcade/Emitter.js b/src/particles/arcade/Emitter.js
index e31e59e..7f430ad 100644
--- a/src/particles/arcade/Emitter.js
+++ b/src/particles/arcade/Emitter.js
@@ -286,17 +286,7 @@ Phaser.Particles.Arcade.Emitter.prototype.makeParticles = function (keys, frames
// particle = new this.particleClass(;
// }
- if (collide)
- {
georgiee / gist:11368709
Created Apr 28, 2014
Polyfill Uint32Array (for Phaser 2.0.3+)
View gist:11368709
//Cameron Foale (
(function(global, undefined) {
* Low-budget Float32Array knock-off, suitable for use with P2.js
if(typeof global.Uint32Array !== "function")
View gist:7758583691d33a2c1af1
class PinballGame.Core.CollideableEntity
constructor: (entity, shape)->
@entity = entity
if shape instanceof Array
@shapes = shape
@shapes = [shape]
getCollisionShapes: -> @shapes
getEntity: -> @entity
View gist:c825eff24648d94c383d
Piwik Code:
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
(function() {
View gist:427e2f97fdd0aa341d60
==> ./artist <==
##legal: IMPORTANT: The Apple Enterprise Partner Feed and data incorporated therein ("EPF")
==> ./artist_application <==
View webpack+library+npm+local+babel
How to create a local project which should be use in another local project- as a library
+ Make it a local linked package, install it in your other project, enable the library option in webpack, builed it manually or with the watch option.
1. Use npm link to symlink your local module A into module B. So all your changes in module A are reflected immediately in module B
See here:
2. Make sure that your source module (A) is wrapped correctly by webpack so you can require it like any other library.
Use this:
georgiee / subtree_heroku
Created Aug 28, 2012
push git subfolder to heroku
View subtree_heroku
brew install git-subtree
git subtree push --prefox web staging master
#where "web" is subfolder of git project and contains the rails app
#another way would be using without subtree push but then you would always push your whole project and not only "web" or whatever folder
View gist:4185862
georgiee / static_heroku_sinatra
Created Dec 12, 2012
Static page on heroku based on sinatra
View static_heroku_sinatra
source :rubygems
gem 'rack'
gem 'sinatra'
require './app'
run Sinatra::Application
You can’t perform that action at this time.