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

18
LINES

< > BotCompany Repo | #1003882 // getServerTranspiled, editing

JavaX fragment (include)

static String getServerTranspiled(String snippetID) ctex {
  long id = parseSnippetID(snippetID);
  /*S t = getTranspilationFromBossBot(id);
  if (t != null) return t;*/
  
  File cacheFile = new File(getCacheProgramDir("#1001154", "t" + id);
  S text = loadTextFile(cacheFile);
  S md5 = text == null ? "" : md5(text);
  
  S u = tb_mainServer() + "/tb-int/get-transpiled.php?raw=1&withlibs=1&id=" + id + "&utf8=1&md5=" + md5;
  URL url = new URL(u);
  loadPage_charset.set("UTF-8");
  try {
    return loadPage(url);
  } finally {
    loadPage_charset.set(null);
  }
}

Author comment

Began life as a copy of #1001154

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003882
Snippet name: getServerTranspiled, editing
Eternal ID of this version: #1003882/2
Text MD5: 0bbc04b6f84197bc56e26730823a600a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-29 16:52:54
Source code size: 587 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 526
Version history: 1 change(s)
Referenced in: [show references]