cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
This file contains 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
function *listen(el, evType) { | |
while (true) | |
yield function(cb) { | |
var fire = function(ev) { | |
el.removeEventListener(evType, fire); | |
cb(null, ev); | |
} | |
el.addEventListener(evType, fire); | |
} | |
} |
This file contains 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
function *listen(el, evType) { | |
while (true) | |
yield function(cb) { | |
var fire = function(ev) { | |
el.removeEventListener(evType, fire); | |
cb(null, ev); | |
} | |
el.addEventListener(evType, fire); | |
} | |
} |
This file contains 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
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
var wrapGenerator = require('regeneratorify/runtime').wrapGenerator; | |
wrapGenerator.mark(listen); | |
function listen(el, evType) { | |
return wrapGenerator(function listen$($ctx) { | |
while (1) switch ($ctx.next) { | |
case 0: | |
if (!true) { | |
$ctx.next = 5; |
This file contains 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
// example using the raf module from npm. try changing some values! | |
var requestAnimationFrame = require("raf") | |
var canvas = document.createElement("canvas") | |
canvas.width = 500 | |
canvas.height = 500 | |
document.body.appendChild(canvas) | |
var context = canvas.getContext("2d") |
This file contains 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
// example using the raf module from npm. try changing some values! | |
var requestAnimationFrame = require("raf") | |
var Bacon = require("baconjs") | |
var canvas = document.createElement("canvas") | |
canvas.width = 500 | |
canvas.height = 100 | |
document.body.appendChild(canvas) | |
var box = document.createElement("div") |
This file contains 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
var ticker = require("ticker") | |
var PIXI = require("pixi.js") | |
var stage = new PIXI.Stage(0xFFFFFF, true); | |
stage.interactive = true; | |
var renderer = PIXI.autoDetectRenderer(640, 480); | |
renderer.view.style.display = "block"; | |
// add render view to DOM | |
document.body.appendChild(renderer.view); |
This file contains 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
// http://stackoverflow.com/a/10142212/195895 | |
if (typeof Object.create !== 'function') { | |
Object.create = function (o) { | |
function F() {} | |
F.prototype = o; | |
return new F(); | |
}; | |
} |
This file contains 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
function () { | |
alert("!!!"); | |
} |
This file contains 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
describe( "Player library", function () { | |
describe("Player", function() { | |
it("exists in a library namespace", function() { | |
expect(mediaITPro.Player).toBeDefined(); | |
}); | |
it("has an attachPlayer method", function() { | |
expect(mediaITPro.Player.attachPlayer).toBeDefined(); | |
}); | |
}); | |
OlderNewer