Skip to content

Instantly share code, notes, and snippets.

View dreammonkey's full-sized avatar

Diederik van Remoortere dreammonkey

  • TBWA Belgium
  • Antwerp, Belgium
View GitHub Profile
@dreammonkey
dreammonkey / ClippedSprite.as
Created June 11, 2012 14:02 — forked from PrimaryFeather/ClippedSprite.as
Simple Sprite subclass with a rectangular mask in stage coordinates
package starling.extensions
{
import flash.display3D.Context3D;
import flash.geom.Rectangle;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.Sprite;
import starling.errors.MissingContextError;
Sails.js
first install sails gloabaly:
sudo npm install -g sails
During development, Sails auto generates all your js, less, image files in the assets folder.
everything in /assets/* will be accesible through: http://localhost:1337/*
Install forever. (Other packages are available for this, but this is what I use)
@dreammonkey
dreammonkey / gist:7242924c152312018c2a
Created October 3, 2014 09:45
update nodejs (stable)
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
(function() {
var Button = function(label) {
this.initialize(label);
}
var p = Button.prototype = new createjs.Container();
Button.prototype.Container_initialize = p.initialize;
Button.prototype.initialize = function(label) {
this.Container_initialize();
@dreammonkey
dreammonkey / gist:512ed65a32fa4e63ef64
Created October 9, 2014 16:40
code igniter last db error
$this->db->_error_message();
@dreammonkey
dreammonkey / gist:431fa8457a5a520f6d25
Created October 20, 2014 09:31
install tutum CLI (prerelease)
#from:
https://support.tutum.co/support/solutions/articles/5000049209-installing-the-command-line-interface-tool-pre-release-
# if clean install
sudo pip install tutum --pre
# if previous tutum version is already installed:
sudo pip install tutum --pre --upgrade
# check version:
@dreammonkey
dreammonkey / ant mac osx
Created October 22, 2014 13:04
ant mac osx
# requires you have java installed
# requires ant binaries are in /usr/local/ant
export ANT_HOME=/usr/local/ant
export JAVA_HOME=
export PATH=${PATH}:${ANT_HOME}/bin
@dreammonkey
dreammonkey / ADL ADT AIR PATH EXPORT
Created October 23, 2014 11:38
add AIR SDK (adt/adl) CLI MAc OSX
# edit $home/.bash_profile:
# add the following lines:
# ADL / ADT / … (AIR)
export AIR_HOME=/Applications/Adobe\ Flash\ Builder\ 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK
export PATH=${PATH}:${AIR_HOME}/bin
* $ character not selected when double clicking php variable
open Preferences.sublime-settings-User and add:
[
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
]
* enable ALT + UP & DOWN keys for swapping lines up & down... (Eclipse style):
open Sublime-keymappings-User and add:
[
{ "keys": ["alt+up"], "command": "swap_line_up" },
sudo chown -R $(whoami) ~/.npm