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

!747

m {
  static S githubPath = "mcheese/cheesebase";
  static boolean doIt = true;
  
  p {
    S url = "https://github.com/" + githubPath + "/archive/master.zip";
    S found = findSnippetNamed("Data: " + url);
    print(found == null ? "Existing snippet not found" : "Snippet exists: " + found);
    if (found == null && doIt) {
      S addURL = "http://tinybrain.de:8080/tb-int/add_snippet.php";
      S query = "type=37&high=1&public=1&url=" + urlencode(url);
      print(doPost(query, addURL));
    }
  }
}

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: 568 / 607
Referenced in: #3000204 - Answer for stefanreich (>> t cheesebase)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)