This file contains 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 com.mindrocks.text.Parser; | |
using com.mindrocks.text.Parser; | |
import com.mindrocks.functional.Functional; | |
using com.mindrocks.functional.Functional; | |
using com.mindrocks.macros.LazyMacro; | |
import com.mindrocks.text.ParserMonad; | |
using com.mindrocks.text.ParserMonad; |
This file contains 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 com.mindrocks.text.Parser; | |
using com.mindrocks.text.Parser; | |
import com.mindrocks.functional.Functional; | |
using com.mindrocks.functional.Functional; | |
using com.mindrocks.macros.LazyMacro; | |
using Lambda; |
This file contains 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 nape; | |
!!/** | |
!! * Configuration parameters for Nape | |
!! */ | |
@:final class Config { | |
!!/** | |
!! * Construct new configurations object. | |
!! */ | |
public function new() {} |
This file contains 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
typedef Monad<M> = { | |
static function bind<A,B>(a:M<A>, f:A->M<B>):M<B>; | |
static function ret<A>(a:A):M<A>; | |
} | |
enum MaybeImpl<A> { | |
mJust(a:A); | |
mNothing); | |
} |
This file contains 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
abstract Flags(Int) to Int { | |
public static var A(default,never):Flags = 1; | |
public static var B(default,never):Flags = 2; | |
public static var C(default,never):Flags = 4; | |
@:from inline static function fromInt(x:Int) return new Flags(x); | |
inline function new (f:Int) this = f; | |
@:op(A|B) inline public static function join(a:Flags, b:Flags):Flags { | |
var _a:Int = a; |
This file contains 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 cv; | |
import #if cpp cpp #else neko #end.Lib; | |
import cv.core.*; | |
import cv.core.Scalar.Scalar_; | |
import cv.core.Scalar.RGB; | |
import cv.Macros; | |
typedef Arr = NativeBinding; // Image|Mat|Seq? |
This file contains 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
" Vim syntax file | |
" Language: haxe | |
" Please check :help haxe.vim for comments on some of the options available. | |
"set errorformat=%f\:%l\:\ characters\ %c-%*[^\ ]\ %m,%f\:%l\:\ %m | |
set errorformat=%f\:%l\:\ characters\ %c-%*[^\ ]\ %m,%f\:%l\:\ %m | |
" Quit when a syntax file was already loaded | |
if !exists("main_syntax") |
This file contains 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 cv.Core; | |
import cv.HighGUI; | |
import cv.ImgProc; | |
import ogl.GL; | |
class Main { | |
static var v2 = GL.v2; | |
static var v3 = GL.v3; |
This file contains 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; | |
#if macro | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
#end | |
@:autoBuild(LongParamsImpl.run()) interface LongParams {} | |
class LongParamsImpl { |
This file contains 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
abstract Fixed16(Int) { | |
inline function new(x:Int) this = x; | |
inline function raw() return this; | |
inline static function RAW(x:Int) return new Fixed16(x); | |
public static var MAX_VALUE:Fixed16 = RAW(0x7fffffff); | |
public static var MIN_VALUE:Fixed16 = RAW(1); | |
@:from public static inline function fromf(x:Float) { | |
#if debug |
OlderNewer