- install jspm beta:
npm install -g jspm@beta
- set up your project:
jspm init
- install dependencies:
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// really more a struct/interface | |
class DataStore { | |
store: (object: any, key: string) => string; | |
get: (key: string) => any; | |
} | |
class JsonDataStore extends DataStore { | |
getRawJson: () => string; | |
static create(fileWriter: FileWriter): JsonDataStore { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MIT License | |
//Author: Max Irwin, 2011 | |
//Floodfill functions | |
function floodfill(x,y,fillcolor,ctx,width,height,tolerance) { | |
var img = ctx.getImageData(0,0,width,height); | |
var data = img.data; | |
var length = data.length; | |
var Q = []; | |
var i = (x+y*width)*4; |
Heil PR40 Package - http://www.bswusa.com/Dynamic-Microphones-Heil-Sound-PR40-Package-P7628.aspx
This is a great deal, and is a perfect mic for this stuff.
OC White Boom - http://www.ocwhite.com/broadcast-arms/proboomtm-elite-extended-reach-mic-arm-with-riser-45-reach-12-vertical-riser.html
The kit comes with a boom. It is decent, I guess, but this OC White boom is badass prostyle with a 4' reach and a 15" riser that lets it live behind my monitor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function listenerValid(listener:Function):Boolean | |
{ | |
var scope:Array = getLexicalScopes(listener); | |
var scopeXML:XML = flash.utils.describeType(scope[0]); | |
// No clue on how to get the "name" of the function passed. I had to use a hard coded string of "hearSignal" for this test | |
var functionDescriptionXML:XML = scopeXML.factory.method.(@name == "hearSignal")[0]; | |
var params:XMLList = functionDescriptionXML..parameter; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NoCake | |
{ | |
private var _clicked:Signal; | |
private var _data:Object; | |
public function NoCake(mc:MovieClip, data:Object) | |
{ | |
_clicked = new Signal(Object); | |
_data = data; | |
mc.addEventListener(MouseEvent.CLICK, onClick); |
NewerOlder