Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs');
function readJsonFile(fileName) {
var buf = fs.readFileSync(fileName);
return JSON.parse(buf.toString('utf8'));
}
var deviceRegistry = readJsonFile('./.storage/core.device_registry')
var devices = deviceRegistry.data.devices;
var smokeDetectors = {};
for (var device of devices) {
(defun test ()
(let* ((dog1 (: dog new))
(dog2 (: dict new))
(dog1_2 (dot dog1 'name 'lola))
(dog2_2 (dot dog2 'name 'rocky)))
(list (dot dog1_2 'name)
(dot dog2_2 'name))))

Keybase proof

I hereby claim:

  • I am yariv on github.
  • I am yariv (https://keybase.io/yariv) on keybase.
  • I have a public key whose fingerprint is D30E 61D5 14BF 5A58 92B3 985A 6149 D5F4 71B4 4B18

To claim this, I am signing this object: