This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| counter = 1 | |
| -- Initialize the pseudo random number generator - http://lua-users.org/wiki/MathLibraryTutorial | |
| math.randomseed(os.time()) | |
| math.random(); math.random(); math.random() | |
| function file_exists(file) | |
| local f = io.open(file, "rb") | |
| if f then f:close() end | |
| return f ~= nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ticketLink() { | |
| // configuration | |
| var sheetName = 'Sample1'; | |
| var redmineUrl = 'http://redmine.example.com/issues/'; | |
| var targetRange = 'A2:A'; | |
| var doc = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = doc.getSheetByName(sheetName); | |
| var all = sheet.getRange(targetRange); | |
| var height = all.getHeight(); |

