Skip to content

Instantly share code, notes, and snippets.

{
bulkId:"Y29tcGFueV9pZDo1OnJlcG9ydDoyNDExOmNodW5rSW5kZXg6MjoxNTQ4MDY3MTU2NzUw",
messages:[
{
text:"Hello There\nRply STOP to cancel",
destinations:[
{
to:"15555000000",
messageId:"2034070510160109026"
}
var x = require('crypto');
var t = Math.floor(Date.now() / 1000);
var z = crypto.createHash('md5').update(t.toString()).digest("hex");
var customerId = z.substring(0,10);
var test_array = [["name1", 2, 3], ["name2", 4, 5], ["name3", 6, 7], ["name4", 8, 9], ["name5", 10, 11]];
var csv = test_array.map(function(d){
return JSON.stringify(d);
})
.join('\n')
.replace(/(^\[)|(\]$)/mg, '');
dl = "data:text/csv;charset=utf-8," + csv
window.open(encodeURI(dl))
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
Error: connect EHOSTUNREACH 52.24.89.73:443
at Object.exports._errnoException (util.js:907:11)
at exports._exceptionWithHostPort (util.js:930:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1077:14)\n"
2016-11-11T05:13:39.855278254Z app[web.1]: TypeError: UsersCharges.created is not a function
2016-11-11T05:13:39.855295055Z app[web.1]: at /app/api/controllers/ManageController.js:74:25
2016-11-11T05:13:39.855302826Z app[web.1]: at wrapper (/app/node_modules/sails/node_modules/lodash/index.js:3592:19)
2016-11-11T05:13:39.855310812Z app[web.1]: at applyInOriginalCtx (/app/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:421:80)
2016-11-11T05:13:39.855331523Z app[web.1]: at wrappedCallback (/app/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:324:18)
2016-11-11T05:13:39.855341918Z app[web.1]: at callback.success (/app/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31)
2016-11-11T05:13:39.855349877Z app[web.1]: at _switch (/app/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:58:28)
2016-11-11T05:13:39.855362186Z app[web.1]: at /app/node_modules/sails/node_module
2016-11-10T06:59:24.259576858Z app[web.1]: Sending 500 ("Server Error") response:
2016-11-10T06:59:24.259712932Z app[web.1]: Error (E_VALIDATION) :: 1 attribute is invalid
2016-11-10T06:59:24.259759193Z app[web.1]: at WLValidationError.WLError (/app/node_modules/sails/node_modules/waterline/lib/waterline/error/WLError.js:25:15)
2016-11-10T06:59:24.259812759Z app[web.1]: at new WLValidationError (/app/node_modules/sails/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)
2016-11-10T06:59:24.259825222Z app[web.1]: at _afterValidating (/app/node_modules/sails/node_modules/waterline/lib/waterline/query/validate.js:53:23)
2016-11-10T06:59:24.259834527Z app[web.1]: at allValidationsChecked (/app/node_modules/sails/node_modules/waterline/lib/waterline/core/validations.js:265:12)
2016-11-10T06:59:24.259846667Z app[web.1]: at /app/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:52:16
2016-11-10T06:59:24.259860393Z app[web.1]: at Object.async.forEac
node:
build: ./node
links:
- "redis:redis"
- "mariadb:mariadb"
redis:
image: redis
mariadb:
image: "mariadb:latest"
environment:
if(!hour >= settings.config.lightOn || !hour <= settings.config.lightOff) {
lightOn(data);
} else {
lightOff(data);
var d = new Date();
var n = d.getHours(); //get the current local time's hour in military time (1..23)
//If the time is greater than or equal to 8AM or less than or equal to 2am
if (n >= 8 || n <= 2) {
//set background color to X
}