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).

static LS tb_codeServers_default = ll(
  "http://code.botcompany.de:8081",
  "http://cruddie.site:8081");
  
static LS tb_codeServers;

static LS tb_codeServers() {
  // method 1: set field
  if (nempty(tb_codeServers)) ret tb_codeServers;
  
  // method 2: use file
  LS lines = tlft(dropHashComments(loadTextFile(tb_codeServers_file())));
  if (nempty(lines)) ret lines;
  
  // method 3: use default
  ret tb_codeServers_default;
}

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: 676 / 737
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)