1 | static S createTempProgram(S code) { |
2 | ret createTempProgram(code, "Temp program by " + formatSnippetID(getProgramID())); |
3 | } |
4 | |
5 | static S createTempProgram(S code, S title) { |
6 | S addURL = "http://tinybrain.de:8080/tb-int/add_snippet.php"; |
7 | S query = "type=34&superhigh=1&public=1&text=" + urlencode(code) |
8 | + "&name=" + urlencode(title); |
9 | S answer = doPost(query, addURL); |
10 | if (!isSnippetID(answer)) fail(answer); |
11 | print("Temp program created! " + formatSnippetID(answer)); |
12 | ret answer; |
13 | } |
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: | 700 / 971 |
Referenced in: | [show references] |