View DynamicTimer.hx
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
package com.tommedema; | |
import haxe.Timer; | |
class DynamicTimer extends Timer | |
{ | |
private var newTimer:Timer; | |
public function new(interval_ms:Int) | |
{ |
View gist:505289
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
public function start():Void { | |
//register csv file input listener | |
stdIn = Node.process.openStdin(); | |
stdIn.addListener(Node.EVENT_STREAM_DATA, onCSVInput); | |
} | |
private function readCSVFile(fileName:String):Void { | |
var me:StartupHandler = this; | |
Node.require("fs").readFile(fileName, Node.UTF8, function(err:Dynamic, content:String) { |
View gist:669224
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
HBPBLoader.load(function() { | |
$(document).ready(function() { | |
console.log(" test" ); | |
Main.init(); | |
}); | |
}); |
View gist:669339
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 HBPBLoader = function() { } | |
//scripts | |
HBPBLoader.scripts = []; | |
//add method | |
HBPBLoader.add = function(script) { | |
HBPBLoader.scripts.push(script); | |
}; |
View gist:672260
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
Firebug's log limit has been reached. 0 entries not shown. Preferences | |
uncaught exception: Resource: id=[joose://App.Main], type=[JooseX.Namespace.Depended.Resource.JooseClass] not found | |
eval()1 (line 1) | |
c()jxnd.js (line 844) | |
isLoaded()jxnd.js (line 397) | |
override()core.js (line 749) | |
handleLoad()jxnd.js (line 407) | |
override()core.js (line 749) | |
handleDependencies(Object { name="resource"})jxnd.js (line 340) | |
(?)(Object { name="value"}, Object { name="name"})core.js (line 103) |
View gist:674074
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
methods : { | |
load : function() { | |
//load element: new source button | |
this.newSourceButton = new Interface.Button({buttonValue : "New Source"}); | |
this.newSourceButton.load(this.mid1Element, this.onSourceButtonClick); | |
}, | |
onSourceButtonClick : function() { | |
console.log(this); //returns window |
View gist:674443
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
Firebug's log limit has been reached. 0 entries not shown. Preferences | |
jQuery is not defined | |
(?)()5 (line 32) | |
(?)(Object { name="window"}, Object { name="undefined"})5 (line 20) | |
eval()5 (line 6883) | |
materialize()Auto.js (line 682) | |
materialize(Object { name="resourceBlob"})Auto.js (line 681) | |
override()Core.js (line 749) | |
onsuccess(Object { name="resourceBlob"}, Object { name="url"})Auto.js (line 431) | |
(?)(Object { name="success"}, Object { name="text"})Auto.js (line 1116) |
View gist:675542
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
Class("Selection.Handler", { | |
use : "./Selection/Framework/rangy-core.js", | |
//static | |
my : { | |
body : function() { | |
console.log("deps loaded static"); | |
console.log(rangy); //RESULTS IN EXCEPTION, NOT DEFINED. | |
}, | |
View gist:676162
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
Role('JooseX.Namespace.Depended.Transport.ScriptTag', { | |
requires : [ 'handleLoad' ], | |
override : { | |
load: function (url, onsuccess, onerror) { | |
//load URL, on success call onsuccess(strData, url);, on error call onerror(e); | |
var newscript = document.createElement('script'), |
View gist:702350
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
jQuery(this.getDomElement()).css("display", "hidden"); //set display to hidden | |
console.log("new: %s", jQuery(this.getDomElement()).css("display")); //still returns "inline" |
OlderNewer