Skip to content

Instantly share code, notes, and snippets.

silly exec git "clone" "[email protected]:brunch/iced-coffee-script-brunch.git" "C:\\Users\\Dave\\AppData\\Local\\Temp\\npm-1336510706545\\1336510706545-0.7121509178541601"
silly spawning [ 'git',
silly spawning [ 'clone',
silly spawning '[email protected]:brunch/iced-coffee-script-brunch.git',
silly spawning 'C:\\Users\\Dave\\AppData\\Local\\Temp\\npm-1336510706545\\1336510706545-0.7121509178541601' ],
silly spawning null ]
ERR! git clone [email protected]:brunch/iced-coffee-script-brunch.git CreateProcessW: The system cannot find the file specified.
ERR! Error: `git "clone" "[email protected]:brunch/iced-coffee-script-brunch.git" "C:\\Users\\Dave\\AppData\\Local\\Temp\\npm-1336510706545\\1336510706545-0.7121509178541601"` failed with 127
ERR! at ChildProcess.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\exec.js:58:20)
torches = torches.sort (torch1, torch2) ->
if torch1.points < torch2.points
1
else if torch1.points > torch2.points
-1
else
0
.dotted-border-top {
width: 687px;
border-top: 2px dotted #a9a8a8;
.center-block();
}
.dotted-border-bottom {
width: 687px;
border-bottom: 2px dotted #a9a8a8;
.center-block();
FB.hx
=====
@:native("FB")
extern class FBExtern {
public static function init(params:Dynamic):Void;
}
compile.hxml
============
-js out/production/ptthaxe/js/PTT.js
-main Main
-debug
-cp src
-cp d:/Projects/HAXERESOURCES/cube/haxelib
-cp d:/Projects/HAXERESOURCES/hxevents/src
-cp d:/Projects/HAXERESOURCES/injector/haxelib
extend: function() {
var Class = makeCtor(), proto;
Class.ClassMixin = Ember.Mixin.create(this.ClassMixin);
Class.PrototypeMixin = Ember.Mixin.create(this.PrototypeMixin);
Class.ClassMixin.ownerConstructor = Class;
Class.PrototypeMixin.ownerConstructor = Class;
var PrototypeMixin = Class.PrototypeMixin;
PrototypeMixin.reopen.apply(PrototypeMixin, arguments);
EmberJSGenerator.hx is a straight copy of ExampleJSGenerator, only with the class name changed in .use() and a print() added to the top of generate for testing.
compile.hxml
============
-js bin/embertest.js
-main Main
-cp src
--macro EmberJSGenerator.use()
EmberJSGenerator.hx
package ember;
@:native("Ember.Application")
extern class Application {
public static function create():Application;
}
This works great with myApplication = Application.create()
MyApp = $hxClasses['MyApp'] = function() { };
MyApp.__name__ = ["MyApp"];
MyApp.__super__ = Ember.Application;
for(var k in Ember.Application.prototype ) MyApp.prototype[k] = Ember.Application.prototype[k];
package myapp;
import ember.State;
import ember.StateManager;
import ember.View;
@:ember @:native("MyApp.AppStateManager")
class AppStateManager extends StateManager {
override public function init() {
states = { };