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 ; | |
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}> = []; |
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 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; |
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 lnk.helpers; | |
import haxe.io.Bytes; | |
import haxe.Exception; | |
private enum Endianness { | |
BigEndian; | |
LittleEndian; | |
} |
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 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>; |