muh
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const request = require("request");
|
||||
const request = require("request")
|
||||
, fs = require("fs");
|
||||
|
||||
const maxoutput = 400;
|
||||
const maxoutput = 500;
|
||||
|
||||
const hsimports = [
|
||||
"Control.Applicative", "Control.Arrow", "Control.Monad",
|
||||
@@ -12,6 +13,7 @@ const hsimports = [
|
||||
].map(imp => { return `import qualified ${imp}`; }).join("\r\n");
|
||||
|
||||
function sandbox(lang, code) {
|
||||
console.log(`${ __dirname }/../../../../neofetch`);
|
||||
const langs = {
|
||||
cpp: {
|
||||
"LanguageChoice": "7",
|
||||
@@ -48,6 +50,18 @@ function sandbox(lang, code) {
|
||||
"Program": code,
|
||||
"Input": "",
|
||||
"CompilerArgs": ""
|
||||
},
|
||||
bash: {
|
||||
"LanguageChoice": "38",
|
||||
"Program": "#!/bin/bash\r\n" + code,
|
||||
"Input": "",
|
||||
"CompilerArgs": ""
|
||||
},
|
||||
neofetch: {
|
||||
"LanguageChoice": "38",
|
||||
"Program": fs.readFileSync(`${__dirname}/../../../../neofetch`, "utf8"),
|
||||
"Input": "",
|
||||
"CompilerArgs": ""
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user