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: | 698 / 969 |
Referenced in: | [show references] |