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
class GoRun extends $Plugin | |
run:-> | |
path = $Document.info("go").path; | |
$Terminal.exec("go", "run", path, | |
(result)=> | |
if result.indexOf("No such file or directory") > -1 | |
$Dialog.alert("Compiler not found","To execute Go code, the Go compiler must be installed"); |
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 sys.FileSystem; | |
import sys.io.File; | |
class Scraper { | |
static public function scrapeFile(name,filename):Void { | |
var r = ~/public\s(?:inline\s)?function\s([A-Za-z]+)/gm; | |
var fileContents = sys.io.File.getContent(filename); | |
var fileLines = fileContents.split("\n"); | |
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
class HaxeLinter extends $Builtin | |
init:-> | |
@startRun(1000); | |
run:-> | |
doc = $Document.temp($Editor.content(),"hx","HaxeLinter"); | |
$Terminal.execBg("haxe","--cwd", doc.folder, doc.filename, "--no-output", |
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
var HaxeLinter, | |
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | |
hasProp = {}.hasOwnProperty; | |
HaxeLinter = (function(superClass) { | |
extend(HaxeLinter, superClass); | |
function HaxeLinter() { | |
return HaxeLinter.__super__.constructor.apply(this, arguments); | |
} |