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 (exports) { | |
// because the anonymous function is being called without a scope being set, | |
// "this" will refer to the global scope. In a browser, that's the window, but | |
// will be "undefined" in strict mode. In other JS platforms, it may be some | |
// other thing. | |
// my code here. | |
// don't make accidental globals. | |
// hang a small number of things on the "exports" object. |
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
application.end = function(){ | |
sys.puts('application end'); | |
application.saveState(true); | |
}; | |
application.saveState = function(shutdown){ | |
sys.puts('application saveState'); | |
//dump data.json into application state | |
var mode = 0444; | |
var x = posix.open(application.dataPath ,process.O_RDWR|process.O_TRUNC,0444).addCallback(function(fd){ |
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
{ | |
"dependencies": [ | |
[ | |
"nr-devtools", | |
{ | |
"catalog": "http://github.com/cadorn/narwhalrunner/raw/master/catalog.json", | |
"name": "devtools", | |
"revision": "latest" | |
} | |
], |
NewerOlder