22
LINES
< > BotCompany Repo | #10
// Upload source file to TinyBrain
Task description
1 | There should be an easy way to upload source files to the snippets DB. Just put it up there, figure out what it is later.
|
2 |
|
3 | Stuff to transmit:
|
4 | -file contents
|
5 | -file name
|
6 | -path (probably a shortened one, not the full local path)
|
7 |
|
8 | Also, of course, user ID and date, but TB will add that automatically.
|
9 |
|
10 | First implementation idea:
|
11 | -Use a new snippet type (Source file)
|
12 | -Snippet name = path + file name
|
13 | -Content = actual file contents
|
14 |
|
15 | Further implementation details:
|
16 | -Command in TB interpreter is: upload src//<path-to-file>
|
17 | -Outputs snippet ID
|
18 |
|
19 | Second step:
|
20 | -Show if file with same contents is in DB already.
|
21 | -Or a file with same path.
|
22 | -Or both? Then probably it's not wise to upload again. A brain might actually know. |
download show line numbers
Relations
- #1034288 is a suggested answer to this [ubataecj]
- #1 contains this [ubataecj]
- #1034288 contains this [ubataecj]
- #1034288 is a comment on this [ubataecj]
- #1000565 contains this [ubataecj]
- #1010768 contains this [ubataecj]
- #1010768 is a comment on this [ubataecj]
- #1010768 is a suggested answer to this [ubataecj]
- #1020581 contains this [ncmufcmu]
- #1 contains this [ncmufcmu]
- #1020554 contains this [ncmufcmu]
- #1020554 is a comment on this [ncmufcmu]
- #1020554 is a suggested answer to this [ncmufcmu]
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
6 comment(s) hidden. show
Image recognition results
Snippet ID: |
#10 |
Snippet name: |
Upload source file to TinyBrain |
Eternal ID of this version: |
#10/1 |
Text MD5: |
2192e8976a946b10984fe6fde7435d69 |
Author: |
stefan |
Category: |
|
Type: |
Task description |
Public (visible to everyone): |
Yes |
Archived (hidden from active list): |
No |
Created/modified: |
2013-12-08 17:58:57 |
Source code size: |
736 bytes / 22 lines |
Pitched / IR pitched: |
No / Yes |
Views / Downloads: |
1311 / 336 |
Referenced in: |
[show references] |