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

17
LINES

< > BotCompany Repo | #1029920 // tb_codeServers - where snippets are loaded from. includes protocol, but no trailing slash. multiple servers

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

Libraryless. Click here for Pure Java version (2886L/19K).

1  
static LS tb_codeServers_default = ll(
2  
  "http://code.botcompany.de:8081",
3  
  "http://cruddie.site:8081");
4  
  
5  
static LS tb_codeServers;
6  
7  
static LS tb_codeServers() {
8  
  // method 1: set field
9  
  if (nempty(tb_codeServers)) ret tb_codeServers;
10  
  
11  
  // method 2: use file
12  
  LS lines = tlft(dropHashComments(loadTextFile(tb_codeServers_file())));
13  
  if (nempty(lines)) ret lines;
14  
  
15  
  // method 3: use default
16  
  ret tb_codeServers_default;
17  
}

Author comment

Began life as a copy of #1010028

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029920
Snippet name: tb_codeServers - where snippets are loaded from. includes protocol, but no trailing slash. multiple servers
Eternal ID of this version: #1029920/2
Text MD5: 9056ba7d82f5b6d4346faa8684b18606
Transpilation MD5: 59e77d1f76d9b199bc4df86073557115
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-06 13:42:34
Source code size: 450 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 675 / 737
Version history: 1 change(s)
Referenced in: [show references]