Transpiled version (6456L) is out of date.
// default mode = "quick" static Pair<Bool, S> transpileOnServer(S snippetID) { ret transpileOnServer(snippetID, "quick"); } static Pair<Bool, S> transpileOnServer(long snippetID) { ret transpileOnServer(fsI(snippetID)); } static Pair<Bool, S> transpileOnServer(long snippetID, S mode) { ret transpileOnServer(fsI(snippetID), mode); } // mode = "quick", "medium", "fresh" // result = pair(ok, answer) static Pair<Bool, S> transpileOnServer(S snippetID, S mode) ctex { print("Transpiling " + formatSnippetID(snippetID)); S url = tb_mainServer() + "/tb/transpile.php"; S modeStr = "&quick=1"; if (eq(mode, "medium")) modeStr += "&medium=1"; if (eq(mode, "fresh")) modeStr += "&fresh=1"; S query = "id=" + parseSnippetID(snippetID) + modeStr + standardCredentials(); S result = loadPage(url + "?" + query); print(result); Matcher m = regexp("URL=/(dexcompile\\.php.*?)'", result); if (!m.find()) ret pair(false, result); url = tb_mainServer() + "/" + m.group(1) + standardCredentials(); result = loadPage(url); bool ok = result.contains("SUCCESS"); ret pair(ok, result); }
Began life as a copy of #1000904
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1004306 |
Snippet name: | transpileOnServer - DON'T use anymore. Use transpileOnNewServer |
Eternal ID of this version: | #1004306/7 |
Text MD5: | 55307bf71b1f0e2fea6499c3ff2581d0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-11 01:39:21 |
Source code size: | 1153 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 651 / 727 |
Version history: | 6 change(s) |
Referenced in: | #1004319 - transpileOnServer2 - testing YN #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019465 - transpileOnNewServer |