This file contains 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 |
This file contains 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 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 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 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 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
/** | |
* Created by toddgeist on 12/28/14. | |
*/ | |
var faker = require('faker'); | |
var stringify = require('csv-stringify'); | |
var uuid =require('uuid'); | |
var moment = require('moment'); | |
var fs = require('fs'); | |
var Readable = require('stream').Readable; |
This file contains 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
Verifying that +toddgeist is my openname (Bitcoin username). https://onename.io/toddgeist |
This file contains 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
##Introduction | |
This document will specify the API that will be used to send Tax Returns from the FileMaker based 6n1 to the .NET application that is being built by Benchmark to do the actually eFileing with the Federal mEF system. | |
FileMaker has a reasonable HTTP client, although it is best to keep things as simple as possible. Complex request types like multi-part forms are more difficult. Its best if we can keep to using only text or json formatted data. Raw binaries are tougher. | |
The intent is to use a REST like architecture. We may not need to support all of the VERBS for each resource. There isn’t really a need to DELETE a firm for example. | |
Authentication | |
We’ll keep this simple and use Basic Auth. There will only be two usernames and password pairs needed. One for “end user” access and one for “admin access”. However, at this point there are no features that require “admin” access. We should just keep that possibility open. | |
All of 6n1 users will use the same username and password. They will never |
This file contains 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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
NewerOlder