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

17
LINES

< > BotCompany Repo | #1002100 // Upload github zip to TinyBrain (mcheese/cheesebase)

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

Libraryless. Click here for Pure Java version (609L/5K/16K).

1  
!747
2  
3  
m {
4  
  static S githubPath = "mcheese/cheesebase";
5  
  static boolean doIt = true;
6  
  
7  
  p {
8  
    S url = "https://github.com/" + githubPath + "/archive/master.zip";
9  
    S found = findSnippetNamed("Data: " + url);
10  
    print(found == null ? "Existing snippet not found" : "Snippet exists: " + found);
11  
    if (found == null && doIt) {
12  
      S addURL = "http://tinybrain.de:8080/tb-int/add_snippet.php";
13  
      S query = "type=37&high=1&public=1&url=" + urlencode(url);
14  
      print(doPost(query, addURL));
15  
    }
16  
  }
17  
}

Author comment

Began life as a copy of #1001009

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002100
Snippet name: Upload github zip to TinyBrain (mcheese/cheesebase)
Eternal ID of this version: #1002100/1
Text MD5: a58c788b023143e73d5ece7f42d0df26
Transpilation MD5: b8ed3085961aadd08dbf5ad71bc51ce6
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-18 17:27:06
Source code size: 530 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 570 / 611
Referenced in: [show references]