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
version: '2' | |
services: | |
dev-nginx: | |
build: | |
context: ./.docker/dev/nginx | |
container_name: dev-nginx | |
links: | |
- dev-node | |
ports: | |
- "80:80" |
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
const Payee = require("../models/Payee"); | |
const Payments = require("../models/Payment"); | |
exports.getPayees = async (req, res) => { | |
return Payee.find({ owner: req.params.userid }) | |
.sort({ day: 1 }) | |
.then(payees => { | |
res.json(payees); | |
}); | |
}; |
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
const express = require("express"); | |
const bodyParser = require("body-parser"); | |
const mongoose = require("mongoose"); | |
const cors = require("cors"); | |
const apiController = require("./controllers/api"); | |
// Create express instnace | |
const app = express(); |
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
module.exports = { | |
/* | |
** Router config | |
*/ | |
router: { | |
middleware: "check-auth" | |
}, | |
/* | |
** Headers of the page | |
*/ |
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
const app = new Vue({ | |
el: "#app", | |
data: { | |
hasPayments: false, | |
payments: [], | |
payees: [], | |
pageSize: 10, | |
currentPage: 1, | |
prevEnable: false, | |
nextEnable: true, |
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
exports.getPaymentsVue = async (req, res) => { | |
const getPayees = () => { | |
return Payee.find({ owner: req.params.userid }) | |
.cache(0, req.params.userid + "__payees") | |
.then(payees => { | |
return payees; | |
}); | |
}; |
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
<!--- | |
Many thanks to Sean Corfield and Ryan Guill who set me down the correct path of java.util.TimeZone | |
---> | |
<cfscript> | |
writeDump(label="Conversion Examples",var={ | |
"0-local-tz": getSystemTZ() | |
,"1-local-now": now() | |
,"2-utc-now": toUTC(now()) | |
,"3-eastern-now": TZtoTZ( getSystemTZ(), now(), "America/New_York" ) |
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
msgDetails = { | |
to="[email protected]", | |
from="[email protected]", | |
subject="example subject", | |
parts = [ | |
{type="text/plain", body="This is plain text..."}, | |
{type="text/html", body="<strong>bold</strong> text..."} | |
] | |
}; |
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
component{ | |
// Configure ColdBox Application | |
function configure(){ | |
// coldbox directives | |
coldbox = { | |
//Application Setup | |
appName = "Appname", | |
eventName = "event", |
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
component { | |
/* | |
Parts of this are based on Tim Dawe's | |
http://amazonsig.riaforge.org | |
and | |
Joe Danziger's Amazon S3 REST Wrapper | |
http://amazons3.riaforge.org/ | |