Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 19Vqhwprkj98Lk7iL6yekrnF5P6fPE4jpY https://explorer.blockstack.org/address/19Vqhwprkj98Lk7iL6yekrnF5P6fPE4jpY
@MondayPM
MondayPM / Macros_s.hx
Created September 22, 2013 05:39
Bind workaround for neko
package macro;
#if macro
import haxe.macro.Type;
import haxe.macro.Expr;
import haxe.macro.Context;
import tink.macro.tools.ExprTools;
import tink.macro.tools.TypeTools;
#end
//Macros_statics
class Macros_s {
@MondayPM
MondayPM / camel_case_refactor.hx
Created May 1, 2013 23:49
Cleanse your camel
Test file:
package;
import CamelCaseTest;
class CamelCaseTest<
ChildType:(ChildI<ChildParentType>,DataObject),
ChildParentType:DataObject,
ChildrenArrayType:ChildArray<ChildType,ChildParentType>
> {
var children(children_get,null):ChildrenArrayType;
var var_test:CamelCaseTest;
@MondayPM
MondayPM / Matcher.hx
Last active December 16, 2015 20:29
Matcher for haxe
package;
class Matcher {
public var s:String;
public var reg:EReg;
public var pos:Int;
public function new(s:String,reg:EReg) {
this.s=s;
this.reg=reg;
pos=0;
}