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

11
LINES

< > BotCompany Repo | #320 // Test snippet producer

Lua code - Snippet producer

1  
function loadDKJSON()
2  
  local env = setmetatable({}, {__index=function(o, k) return _G[k] end })
3  
  return assert(loadSnippet('#44', env))()
4  
end
5  
json = loadDKJSON()
6  
7  
snippet = {}
8  
snippet.type = 26 -- Lua code - Image recognition
9  
snippet.text = "return 'Just a test "..math.random().."'"
10  
11  
return json.encode(snippet)

test run  test run with input  produce a snippet  download  show line numbers   

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

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 324 [visualize]

Snippet ID: #320
Snippet name: Test snippet producer
Eternal ID of this version: #320/1
Text MD5: 045c276991ee447eb0d9ef58b2d17f20
Author: stefan
Category:
Type: Lua code - Snippet producer
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-01-21 21:02:24
Source code size: 324 bytes / 11 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 840 / 175
Referenced in: [show references]