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
package ; | |
/** | |
* ... | |
* @author sonygod | |
*/ | |
import async.Build; | |
import async.Async; | |
import haxe.Timer; |
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
package tests; | |
import js.Node; | |
using AsyncLambda; | |
class TestNode implements async.Build{ | |
@:async static function writeAll(fd:Int, content:String){ | |
var total = 0, length = content.length; | |
while (total > length){ | |
async(written = Node.fs.write(fd, content, total, length - total, null)); | |
total+= written; |
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
var vm = require('vm'), | |
code = 'var square = n * n; console.log(n+"");', | |
fn = new Function('n', code), | |
script = vm.createScript(code), | |
sandbox; | |
n = 5; | |
sandbox = { n: n }; | |
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
package ; | |
import js.Node; | |
import async.Build; | |
import org.transition9.async.Step; | |
/** | |
* ... | |
* test nodevm in async excute | |
* @author sonygod |
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
/** | |
* base communication between js and flash test | |
* | |
*/ | |
package ; | |
import haxe.remoting.ExternalConnection; | |
import haxe.remoting.Context; | |
import haxe.Timer; |
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
package ; | |
//import haxe.Timer; | |
import js.Browser; | |
import haxe.remoting.ExternalConnection; | |
import tink.lang.Cls; | |
class JsMain { | |
public static function foo(obj) { | |
return obj.x + obj.y; } |
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
package ; | |
import haxe.ds.ObjectMap; | |
import haxe.Timer; | |
import haxe.remoting.ExternalConnection; | |
import tink.lang.Cls; | |
/** | |
* ... | |
* @author sonygod | |
*/ |
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
package ; | |
import haxe.ds.ObjectMap; | |
import haxe.ds.StringMap; | |
import haxe.Timer; | |
import haxe.remoting.ExternalConnection; | |
import tink.lang.Cls; | |
import Format; | |
/** | |
* ... | |
* @author sonygod |
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
package ; | |
/** | |
* ... | |
* @author sonygod | |
*/ | |
import async.Build; | |
import async.Async; | |
import haxe.Timer; |
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
/** | |
* Renders a lighting mask which can be added to the display list via Bitmap. | |
* @author Sam MacPherson | |
*/ | |
package as3gl.lighting; | |
import as3gl.core.Destroyable; | |
import as3gl.core.Runnable; | |
import as3gl.display.Batcher; |