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
| jsonO ( | |
| jsonOp ( "firstName" ; "Todd" ) & jsonOp ( "lastName" ; "Geist" ) & | |
| jsonOp ( | |
| "pets" ; | |
| jsonA ( | |
| jsonAv ( | |
| jsonO ( jsonOp ( "species" ; "dog" ) & jsonOp ( "name" ; "Kona" ) ) | |
| ) & | |
| jsonAv ( | |
| jsonO ( jsonOp ( "species" ; "dog" ) & jsonOp ( "name" ; "Alfie" ) ) |
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
| /** | |
| * ContactController | |
| * | |
| * @description :: Server-side logic for managing Contacts | |
| * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers | |
| */ | |
| module.exports = { | |
| /** |
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
| /* | |
| gets each customer with a postive balance in the Retainer Account | |
| check the endDate Below | |
| */ | |
| var QuickBooks = require('node-quickbooks'); | |
| var numeral = require('numeral') | |
| var retainerAccountID = 93; // your account id maybe different | |
| var options = { |
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
| // src/app.js | |
| const path = require('path'); | |
| const serveStatic = require('feathers').static; | |
| const favicon = require('serve-favicon'); | |
| const compress = require('compression'); | |
| const cors = require('cors'); | |
| const feathers = require('feathers'); | |
| const configuration = require('feathers-configuration'); | |
| const hooks = require('feathers-hooks'); |
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
| // load as early as possible | |
| if(process.env.NOW){ | |
| require('dotenv').config({path:'./.envnow', silent:true}); | |
| }else{ | |
| require('dotenv').config({silent:true}); | |
| } | |
| // now you can deploy with: | |
| //$cp .env .envnow && now && rm -r .envnow |
OlderNewer