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

15
LINES

< > BotCompany Repo | #1007516 // Upload All AI Concept Images

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (7705L/52K/170K).

1  
!7
2  
3  
p {
4  
  for (AIConcept c : values(aiConceptsMap_cached())) pcall {
5  
    if (c.pngFile.has()) {
6  
      BufferedImage img = c.pngFile->getImage();
7  
      if (img != null) {
8  
        S text =  c.globalID + " - " + c.name + (nempty(c.comment) ? " / " + c.comment : "");
9  
        print("Uploading " + text);
10  
        uploadToImageServerIfNotThere(img, text);
11  
      }
12  
    }
13  
  }
14  
  print("Done image upload.");
15  
}

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: #1007516
Snippet name: Upload All AI Concept Images
Eternal ID of this version: #1007516/3
Text MD5: a4229e848fb27d79cfd19a6d86162bce
Transpilation MD5: 79485706acfe7b652447ce9e1b7410e1
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-25 22:36:40
Source code size: 414 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 603
Version history: 2 change(s)
Referenced in: [show references]