Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1019465 // transpileOnNewServer

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7131L) is out of date.

// default mode = "quick"
static Pair<Bool, S> transpileOnNewServer(S snippetID) {
  ret transpileOnNewServer(snippetID, "quick");
}

static Pair<Bool, S> transpileOnNewServer(long snippetID) {
  ret transpileOnNewServer(fsI(snippetID));
}

static Pair<Bool, S> transpileOnNewServer(long snippetID, S mode) {
  ret transpileOnNewServer(fsI(snippetID), mode);
}

// mode = "quick", "medium", "fresh"
// result = pair(ok, answer)
static Pair<Bool, S> transpileOnNewServer(S snippetID, S mode) ctex {
  print("Transpiling " + formatSnippetID(snippetID));

  S url = "https://botcompany.de/1018308/raw/" + psI(snippetID);
  url = appendParamsToURL(url,
    medium := eq(mode, "medium") ? "1" : null,
    fresh := eq(mode, "fresh") ? "1" : null);
  S result = postPage(url, transpilationCredentials());
  print(result);
  
  bool ok = cic(htmlDecode(result), "Transpiled & uploaded");
  ret pair(ok, result);
}

Author comment

Began life as a copy of #1004306

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019465
Snippet name: transpileOnNewServer
Eternal ID of this version: #1019465/12
Text MD5: ccb55b7e31b6dcd073671529b002315a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-11 02:01:35
Source code size: 932 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 503
Version history: 11 change(s)
Referenced in: [show references]