Skip to content

Instantly share code, notes, and snippets.

View tommedema's full-sized avatar
🎯
Focusing

Tom Medema tommedema

🎯
Focusing
View GitHub Profile
package com.tommedema;
import haxe.Timer;
class DynamicTimer extends Timer
{
private var newTimer:Timer;
public function new(interval_ms:Int)
{
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) {
HBPBLoader.load(function() {
$(document).ready(function() {
console.log(" test" );
Main.init();
});
});
var HBPBLoader = function() { }
//scripts
HBPBLoader.scripts = [];
//add method
HBPBLoader.add = function(script) {
HBPBLoader.scripts.push(script);
};
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)
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
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)
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.
},
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'),
jQuery(this.getDomElement()).css("display", "hidden"); //set display to hidden
console.log("new: %s", jQuery(this.getDomElement()).css("display")); //still returns "inline"