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

3
LINES

< > BotCompany Repo | #2000299 // A script that uploads web pages

New Tinybrain snippet

Input: An intention ID, like #2000296.
Script action: Finds HTML code and server URL for intention, then copies HTML to the server (creating necessary directories in the process).
Output: Just the stuff on the server. Apart from that, the script might print anything or nothing. Let's not restrict ourselves there. Restriction is bad. Client is responsible for parsing script output and checking success.

download  show line numbers   

Snippet is not live.

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

Comments [hide]

ID Author/Program Comment Date
922 #1000604 (pitcher) 2015-08-20 15:28:24
921 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
Input: An intention ID, like #2000296.
Script action: Finds HTML code and server URL for intention, then copies HTML to the server (creating necessary directories in the process).
Output: Just the stuff on the server. Apart from that, the script might print anything or nothing. Let's not restrict ourselves there. Restriction is bad. Client is responsible for parsing script output and checking success.
}}
2015-08-20 03:51:42  delete 

add comment

Snippet ID: #2000299
Snippet name: A script that uploads web pages
Eternal ID of this version: #2000299/1
Text MD5: 7087fdbde6fef9374b62d89111a52f2a
Author: stefan
Category:
Type: New Tinybrain snippet
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-20 18:52:30
Source code size: 406 bytes / 3 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 888 / 126
Referenced in: #2000300 - Pseudo-Code for #2000299
#3000190 - Answer for stefanreich(>> t 20 questions)
#3000382 - Answer for ferdie (>> t = 1, f = 0)