Skip to content

Instantly share code, notes, and snippets.

View AxGord's full-sized avatar
🦄
Pony

Alexander Gordeyko AxGord

🦄
Pony
View GitHub Profile
package ;
import bindx.IBindable;
import unityengine.MonoBehaviour;
using bindx.Bind;
/**
* Test
* @author AxG
*/
class Test extends MonoBehaviour implements IBindable
{
package ;
import com.dongxiguo.protobuf.binaryFormat.LimitableBytesInput;
import haxe.io.BytesInput;
import haxe.io.BytesOutput;
import pony.net.SocketClient;
import pony.net.SocketServer;
import samplePackage.Call_Builder;
import samplePackage.SetSpeed_Builder;
@AxGord
AxGord / Reference.hx
Last active December 19, 2015 01:09
Build simple help System for your apps.
package ;
import com.bit101.components.TextArea;
import com.bit101.components.List;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.filters.BlurFilter;
import flash.filters.GlowFilter;
import flash.geom.Rectangle;
import flash.net.URLLoader;
static var keyWords = ['for', 'while', 'if', 'else', 'do', 'class', 'case', 'cast', 'catch', 'continue', 'enum', 'super', 'switch', 'true',
'package', 'in', 'import', 'static', 'function', 'null', 'extends', 'extern', 'false', 'implements', 'inline', 'this', 'throw', 'trace',
'break', 'callback', 'default', 'dynamic', 'interface', 'never', 'new', 'override', 'private', 'public', 'return', 'static',
'try', 'typedef', 'untyped', 'using', 'var'];
static var vSymb = '_abcdefghijklmnopqrstuvwxyz';
static function checkIsValidFieldName(v:String):Bool {
if ( v == '' || Std.parseInt(v.substr(0, 1)) != null) return false;
v = v.toLowerCase();
if ( Lambda.indexOf(keyWords, v) != -1 ) return false;
for (i in 0...v.length) if (vSymb.indexOf(v.substr(i, 1)) == -1 && Std.parseInt(v.substr(i, 1)) == null) return false;
@AxGord
AxGord / gist:5730835
Last active December 18, 2015 05:09
HScript live coding. Using in https://github.com/AxGord/LiveTeacher
package ;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.Lib;
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.events.Event;
/**