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
| #if macro | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| import haxe.macro.Type; | |
| #end | |
| #if !macro | |
| @:autoBuild(BuilderBuilder.build()) | |
| #end | |
| interface Builder { } |
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
| class Example | |
| { | |
| static function main() | |
| { | |
| var t = new Tumbler(); | |
| t.onEnable << function() trace('enable'); | |
| t.onDisable << function() trace('disable'); | |
| t.enabled = true; |
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
| Send, trace(); | |
| Send, {Left} | |
| Send, {Left} |
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
| import pony.midi.MidiDevice; | |
| class Main { | |
| static function main() { | |
| var midi = new MidiDevice(0); | |
| //Signal - Key - Velocity << function | |
| midi.on - 81 - 0 << function() trace('first disable'); | |
| midi.on - 81 - 127 << function() trace('first enable'); | |
| midi.on - 82 - 0 << function() trace('second disable'); |
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
| import pony.net.Protobuf; | |
| import pony.net.SocketClient; | |
| import pony.net.SocketServer; | |
| import test.Main_Builder; | |
| import test.Sub_Builder; | |
| class ProtoTest { | |
| static function main() { | |
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 ; | |
| class FastSignalsExample { | |
| static function main() { | |
| var o = new Signal1<String>(); | |
| o.add(function(v) trace(v)); | |
| o.dispatch('Hello'); | |
| } | |
| } |
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.io.BytesInput; | |
| import haxe.io.BytesOutput; | |
| import pony.net.SocketClient; | |
| import pony.net.SocketServer; | |
| import pony.nodejs.SerialPort; | |
| using pony.Tools; |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <config invertbar="true" mouseFilterWait="1000" mouseFilterCount="9"> | |
| <work repeat="5000" sound="start.mp3">1</work> | |
| <relax sound="start.mp3">1</relax> | |
| <idle>10</idle> | |
| </config> |
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 neko.Lib; | |
| using Main; | |
| /** | |
| * ... | |
| * @author AxGord <axgord@gmail.com> | |
| */ | |
| class Main { |
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.macro.Context; | |
| import haxe.macro.Expr; | |
| import neko.Lib; | |
| /** | |
| * ... | |
| * @author AxGord <axgord@gmail.com> | |
| */ |