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

16
LINES

< > BotCompany Repo | #1010028 - tb_mainServer - where snippets are loaded from. includes protocol, but no trailing slash

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

Libraryless. Click here for Pure Java version (1823L/12K).

1  
sS tb_mainServer_default = "http://code.botcompany.de:8081";
2  
static O tb_mainServer_override; // func -> S
3  
4  
static S tb_mainServer() {
5  
  if (tb_mainServer_override != null) ret (S) callF(tb_mainServer_override);
6  
  ret trim(loadTextFile(tb_mainServer_file(),
7  
    tb_mainServer_default));
8  
}
9  
10  
static File tb_mainServer_file() {
11  
  ret getProgramFile(#1001638, "mainserver.txt");
12  
}
13  
14  
static bool tb_mainServer_isDefault() {
15  
  ret eq(tb_mainServer(), tb_mainServer_default);
16  
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1010028
Snippet name: tb_mainServer - where snippets are loaded from. includes protocol, but no trailing slash
Eternal ID of this version: #1010028/7
Text MD5: bbdc3d550267b91f82dd3b947bdf17ff
Transpilation MD5: b8dbc7edbb6ee5302e16ddd58b751ff3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-02 01:20:51
Source code size: 484 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 319
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1010028 & http://1010028.tinybrain.de