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
| copy ( | |
| select | |
| "json" | |
| from _duckdb_ui.notebook_versions | |
| where 1=1 | |
| and title = 'MySingleNotebook' | |
| and expires is null | |
| ) to 'exported-notebook.json'; |
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
| // Based on http://stackoverflow.com/a/20434019 | |
| function calculateAccuracy(txPower, rssi) { | |
| if (rssi === 0) { | |
| return -1; // if we cannot determine accuracy, return -1. | |
| } | |
| var ratio = rssi * 1 / txPower; | |
| if (ratio < 1.0) { | |
| return Math.pow(ratio, 10); |
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
| module.exports = { | |
| /** | |
| * | |
| * Using raw socket.io functionality from a Sails.js controller | |
| * | |
| */ | |
| index: function (req,res) { |