I hereby claim:
- I am crinfarr on github.
- I am crinfarr (https://keybase.io/crinfarr) on keybase.
- I have a public key ASC1R8NpDin-UHXpQVs9EN2JXPAPdv3DSDnaCAWXNqIHKwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| (((2((5[0-5])|[0-4][0-9]))|(1[0-9][0-9])|([1-9][0-9])|([1-9]))\.)(((2((5[0-5])|[0-4][0-9]))|(1[0-9][0-9])|([1-9][0-9])|([0-9]))\.){2}((2((5[0-5])|[0-4][0-9]))|(1[0-9][0-9])|([1-9][0-9])|([1-9])) |
| //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}> = []; |