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
| for d in ./*/; do | |
| # Trim last "/" from "$d | |
| folderName=${d%*/} | |
| # remove text until last "/" | |
| folderName=${folderName##*/} | |
| # checks if folder name starts with underline (_) | |
| # yes: stop loop here | |
| # no: continue |
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 handler(req, res) { | |
| const {hostname, username, password} = req.body | |
| new Cam({ | |
| hostname | |
| , username | |
| , password | |
| }, function(err){ | |
| this.getSnapshotUri({protocol:'RTSP'}, function (err, stream){ | |
| // Make GET request to snapshot uri from câmera |
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
| ROW_NUMBER() OVER (ORDER BY table.column) |
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
| REPLICATE('0', 11 - LEN(table.column)) + table.column |