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

13
LINES

< > BotCompany Repo | #1001631 // createTempProgram

JavaX fragment (include)

static S createTempProgram(S code) {
  ret createTempProgram(code, "Temp program by " + formatSnippetID(getProgramID()));
}

static S createTempProgram(S code, S title) {
  S addURL = "http://tinybrain.de:8080/tb-int/add_snippet.php";
  S query = "type=34&superhigh=1&public=1&text=" + urlencode(code)
    + "&name=" + urlencode(title);
  S answer = doPost(query, addURL);
  if (!isSnippetID(answer)) fail(answer);
  print("Temp program created! " + formatSnippetID(answer));
  ret answer;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001631
Snippet name: createTempProgram
Eternal ID of this version: #1001631/1
Text MD5: 870dc9fda5da6978be0a33e634e609ae
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-21 20:17:26
Source code size: 503 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 699 / 970
Referenced in: #1001643 - findSnippet (by title & text)
#1001644 - createJavaProgram
#1002336 - createSnippet
#1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)