- Create a file named "Main.sql" containing something like this:
BEGIN TRANSACTION;
--@inline {filepath0}
--@inline {filepath1}
--[...]
COMMIT;
//Every X11 color in an enum | |
enum X11Color { | |
Snow; | |
GhostWhite; | |
WhiteSmoke; | |
Gainsboro; | |
FloralWhite; | |
OldLace; | |
Linen; | |
AntiqueWhite; |
package /* whatever you want but I use helpers as the top level and haxelib dev it */; | |
/** | |
* Intended use is with Enums but you can technically use whatever you feel like | |
*/ | |
class Bitmask<T> { | |
private final mvals:Array<T>; | |
private final maxval:Int; | |
public function new(mask:Array<T>) { | |
this.mvals = mask; |
package haxe.ui.core; | |
//in file path haxe/ui/core | |
#if !macro | |
import haxe.ui.core.Component; | |
#end | |
@:autoBuild(haxe.ui.macros.ScalableType.applyScalable()) | |
interface Scalable { | |
private var baseWidth:Null<Float>; | |
private var baseHeight:Null<Float>; |
package lnk.helpers; | |
import haxe.io.Bytes; | |
import haxe.Exception; | |
private enum Endianness { | |
BigEndian; | |
LittleEndian; | |
} |
import haxe.io.BytesBuffer; | |
import haxe.Exception; | |
import haxe.io.Bytes; | |
import haxe.ds.Vector; | |
abstract Bits(Array<Int>) { | |
/** | |
* How many bits long this is | |
*/ | |
public var length(get, never):Int; |
package ; | |
class DfParser { | |
static function parse(i:String):Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> { | |
final result:String = i; | |
var resultArr:Array<String> = ~/(?=\n)/gm.split(result); | |
resultArr = resultArr.filter((s) -> {return if (s == "\n") false else true;}); | |
resultArr.splice(0, 1); | |
var retarr:Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> = []; |