Skip to content

Instantly share code, notes, and snippets.

View belen-albeza's full-sized avatar

Belén Albeza belen-albeza

View GitHub Profile
@osuka
osuka / packages.json
Created January 10, 2014 16:42
Have bower automatically launch with npm install. Makes life easier for people just wanting to use your code. Automatically downloads bower, then call 'bower install' after npm install. From http://stackoverflow.com/a/18591690
{
"name": "webapp",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
...
"bower": ""
},
"engines": {
class Game extends Phaser.Game
constructor: ->
super 800, 600, Phaser.AUTO
@state.add 'Stage', Stage, false
@state.start 'Stage'
class Stage extends Phaser.State
@ryanflorence
ryanflorence / Base.coffee
Created September 9, 2012 01:06
Base CoffeeScript Class, surprisingly useful.
################################################################################
# script: Base.coffee
# author: Ryan Florence <rpflorence@gmail.com>
# license: MIT-Style License
#
# A surprisingly useful base class for CoffeeScript. Inspired by my old
# friend, MooTools Class. Provides default options, mixins, and custom events.
class Base
defaults: {}