TODO
- Download the "full" bin file from here https://drive.google.com/drive/folders/0B0iF4l2rag1dZm9IWTVJbWkyQkE?usp=sharing
- Install it on the Kimax device via the web interfact (note: I had some trouble with this due to CSS shenanigans).
TODO
#!/usr/bin/env bash | |
echo "This works!" |
git clone https://github.com/nodejs/node.git
cd node
git remote add mine <paste that URL here!>
I hereby claim:
To claim this, I am signing this object:
// tern: const Thing = require('./thing.js') | |
/** | |
* @param {Thing} thing | |
*/ | |
module.exports = function (thing) { | |
thing.foo(); | |
} |
It turns out that the node REPL doesn't seem to behave as expected inside a domain. (I'm using node v0.10.22)
Try running repltest.js
, which is narrowed down from a much larger REPL-thing I'm working on. You'll get your REPL, but there is some weirdness. If you give it an empty line (i.e. just press Enter/Return), you'll get a syntax error, captured by the domain and ouput via line 6:
>
SyntaxError: Unexpected token )
at REPLServer.self.eval (repl.js:112:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
################################# | |
################################### | |
#################################### | |
##### #### #### | |
##### #### #### | |
#### #### | |
#### #### | |
#### #### #### | |
##### #### #### |
var app = express(); | |
app.get('/', function(req, res){ | |
try{ | |
if (someBoolean) { | |
res.send("all good!") | |
} else { | |
throw Error("shit's fucked, yo"); | |
} | |
} catch (e){ | |
res.send(e.toString(), 500); |
// node >= 0.8.* | |
var domain = require('domain'); | |
process.on('uncaughtException', function(error){ | |
console.error('UNCAUGHT!', error); | |
}); | |
var d = domain.create(); | |
d.on('error', function(error) { |