An API endpoint represents a directory structure of “cool images:” http://mrn-creed.cloudant.com/cool-images/3f6adfcb7cb3d0117e14062810715ece
Files look like:
{
'use strict'; | |
var fs = require('fs'); | |
var parse = require('css').parse; | |
var path = require('path'); | |
var files = []; // Add your files here | |
var filePaths = files.map(function(file) { | |
return path.join(__dirname, file); |
/** | |
* Get deeply nested objects using a 'compare' function. | |
* | |
* @param {(object|array)} target Data tree in which to find objects. | |
* @param {function} compare Passed items in the `target` data tree. It | |
* should return a boolean value based on the | |
* item. | |
* @return {array} | |
*/ | |
function getDeepObjects(target, compare) { |
// coinstac-server-client/index.js | |
'use strict'; | |
var assign = require('lodash.assign'); | |
var Pouchy = require('pouchy'); | |
module.exports.handlersFactory = function(config) { | |
// Private, configured PouchDB/Pouchy instance | |
// May need async config of instance if it's Cloudant and security settings |
/** | |
* @module base.js - COINSTAC Model | |
*/ | |
'use strict'; | |
const assign = require('lodash/assign'); | |
const joi = require('joi'); | |
const pick = require('lodash/pick'); | |
/** |
'use strict'; | |
const _ = require('lodash'); | |
const coinstacCommon = require('coinstac-common'); | |
const coinstacAlgorithms = require('coinstac-distributed-algorithm-set'); | |
const freesurferParser = require('freesurfer-parser'); | |
const helpers = require('./path/to/helpers/'); | |
const Analysis = coinstacCommon.Analysis; | |
const ComputationPipeline = coinstacCommon.ComputationPipeline; |
#!/usr/bin/env node | |
'use strict'; | |
const logger = require('../src/utils/logger.js'); | |
const pkg = require('../package.json'); | |
const program = require('commander'); | |
const server = require('../index.js').server; | |
const url = require('url'); |
/** | |
* Pick ordered values. | |
* | |
* @example | |
* pickOrderedValues( | |
* ['wat', 'silly'], | |
* { silly: 100, thing: 200, wat: 300 } | |
* ); | |
* // => [300, 100] | |
* |
An API endpoint represents a directory structure of “cool images:” http://mrn-creed.cloudant.com/cool-images/3f6adfcb7cb3d0117e14062810715ece
Files look like:
{
We’re considering changing the object shape for a simulator declaration (declaration.js in Sergey’s examples). Right now it looks like this:
const path = require('path');
module.exports = {
users: [{
username: 'user1',
userData: [
// Data here...
'use strict'; | |
const { deepEqual } = require('assert'); | |
/** | |
* Sample data structure. | |
* | |
* The items are roughly sorted already, with the top-level item as the root of | |
* the tree. | |
* |