function getIcons() hashes = otherresults["#442"] or error("Need result of #442, please recalc") j, icons = nil, {} while true do i, j, r, hash = string.find(hashes, "(%d+, %d+, %d+, %d+) %-> ([a-f0-9]+)", j) if i == nil then break end icons[hash] = r end end
test run test run with input 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
Snippet ID: | #451 |
Snippet name: | getIcons (include, grid size=3) |
Eternal ID of this version: | #451/1 |
Text MD5: | 959adb88a043d8129268fb2a260f5c8e |
Author: | stefan |
Category: | image recognition |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-02-12 23:53:32 |
Source code size: | 297 bytes / 11 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 909 / 228 |
Referenced in: | [show references] |