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
using Dates | |
escaped_format = "yyyy-mm-dd\\THH:MM:SS.sss\\Z" | |
Zulu = String | |
Dates.CONVERSION_SPECIFIERS['Z'] = Zulu | |
Dates.CONVERSION_DEFAULTS[Zulu] = "" | |
df = Dates.DateFormat(escaped_format) | |
function convert_date(datestring::String) | |
Dates.parse(DateTime, datestring, df) |
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
gyp ERR! System Linux 4.9.49-moby | |
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /app/node_modules/posix | |
gyp ERR! node -v v8.9.4 | |
gyp ERR! node-gyp -v v3.6.2 | |
gyp ERR! not ok | |
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle false | |
npm verb lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/app/node_modules/posix/node_modules/.bin:/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
npm verb lifecycle [email protected]~install: CWD: /app/node_modules/posix | |
npm info lifecycle [email protected]~install: Failed to exec install script |
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
<your blacklisted IPs> |
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 io = require('socket.io'); | |
var dnode = require('dnode'); | |
var socket = io.connect(); | |
var stream = new Stream(); | |
stream.writeable = true; | |
stream.readable = true; | |
stream.write = function(buffer) { | |
socket.emit('message', String(buffer)); |
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 Quill = require('quill'); | |
var Delta = require('quill-delta'); | |
var linkRegex = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/; | |
function addhttp(url) { | |
if (!/^(f|ht)tps?:\/\//i.test(url)) { | |
url = "http://" + url; | |
} | |
return url; |