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