get("#515") -- splitLines
text = getSnippet("#2000025")
lines = splitLines(text)
header = lines[1]:gsub(" +", " "):gsub("^ ", ""):gsub(" $", "")
print(header)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: | #523 |
| Snippet name: | Print compacted table header for snippet type identification purposes |
| Eternal ID of this version: | #523/1 |
| Text MD5: | f96e5a2055defac6ff4e80f380c7ad43 |
| Author: | stefan |
| Category: | |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-03-11 19:21:00 |
| Source code size: | 162 bytes / 5 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 949 / 214 |
| Referenced in: | #524 - Find snippet references in a text #3000190 - Answer for stefanreich(>> t 20 questions) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |