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
{ | |
bulkId:"Y29tcGFueV9pZDo1OnJlcG9ydDoyNDExOmNodW5rSW5kZXg6MjoxNTQ4MDY3MTU2NzUw", | |
messages:[ | |
{ | |
text:"Hello There\nRply STOP to cancel", | |
destinations:[ | |
{ | |
to:"15555000000", | |
messageId:"2034070510160109026" | |
} |
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
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); |
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
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)) |
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
# ----------------------------- | |
# 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 |
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
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" |
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
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 |
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
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 |
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
node: | |
build: ./node | |
links: | |
- "redis:redis" | |
- "mariadb:mariadb" | |
redis: | |
image: redis | |
mariadb: | |
image: "mariadb:latest" | |
environment: |
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
if(!hour >= settings.config.lightOn || !hour <= settings.config.lightOff) { | |
lightOn(data); | |
} else { | |
lightOff(data); |
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
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 | |
} |
NewerOlder