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
ab -n 1000 -c 100 -H "Content-Type: application/json" http://127.0.0.1:8080/api/system/nodeDetails?APIToken=apitoken-root | |
ab -n 1 -p test/fixtures/benchmark.json -H "Content-Type: application/json" -T "application/json" http://127.0.0.1:8080/api/beacon/insert?APIToken=apitoken-root |
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
bin/joola.io.cli -e "joolaio.users.update({username:'root', _password:'password', _APIToken: 'token'})" |
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
> db['root_codepen-clicks'].remove({clicks:{$lt:0}}) | |
> db['root_codepen-visits'].remove({visits:{$lt:0}}) |
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
<html> | |
<html> | |
<title>joola.io Documentation - Examples - A complete example. | |
</html> | |
<body> | |
<h3>joola.io Documentation</h3> | |
<h2>Examples</h2> | |
<h1>A complete example</h1> | |
<hr> |
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
-require joola.io.js | |
var myProject = joolaio.project.add('pet-project') | |
.collections.add('visits') | |
.dimensions.add('user.email', 'string') | |
.metrics.add('visits', 'int', 'sum') | |
.metrics.add('unique visists', 'int', 'sum', 'unique', 'user.email') | |
.metrics.add('visit time', 'int', 'avg', 'duration'); | |
.collections.add('purchases') | |
.dimensions.add('user.email', 'string') |
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
common.stringify = function (obj, callback) { | |
var errored = false; | |
if (!obj) | |
return callback(null, obj); | |
try { | |
var | |
expected = [], | |
es = require('event-stream'); |
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
$ npm install -g sloc | |
$ sloc -e "bin/joola.io.js|public/|views/|.json|.md" lib/ | |
---------- result ------------ | |
physical lines : 5532 | |
lines of source code : 3546 | |
total comment : 1328 | |
singleline : 112 | |
multiline : 1216 |
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 getInterval(){ | |
//The interval in ms | |
return Math.floor(Math.random() * 1500) + 1 | |
} | |
function getValue(){ | |
//The value to push | |
return Math.floor(Math.random() * 100) + 0 | |
} |
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
Object.defineProperty(Error.prototype, 'toJSON', { | |
value: function () { | |
var alt = {}; | |
Object.getOwnPropertyNames(this).forEach(function (key) { | |
alt[key] = this[key]; | |
}, this); | |
return alt; | |
}, |
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
https://github.com/adobe/brackets/pull/5857 |