A short summary of ES6 features and their ES5 equivalents.
Access in-depth ES6 articles here.
Table of contents
A short summary of ES6 features and their ES5 equivalents.
Access in-depth ES6 articles here.
Table of contents
The 10001st Prime Number is 104743.
Please find the code in primenumber.js
file.
23.35302734375ms
, but if we run it again, it takes just 0.260986328125ms
.#!/bin/bash | |
# OPLOG_LIMIT: only include oplog entries before the provided Timestamp | |
# The timestamp is a unix timestamp | |
# If your desaster happened for example on 2017-18-10 12:20 and you want to restore until 12:19 | |
# your timestamp is 'date -d "2017-10-18 12:19:00" +%s' | |
FULL_DUMP_DIRECTORY=$1 | |
OPLOGS_DIRECTORY=$2 | |
OPLOG_LIMIT=$3 |
👋 Moved to https://github.com/borekb/docker-path-workaround
UPDATE 07/2018: I switched from Git Bash to MSYS2 recently which should be very similar, if not the same, but there some subtle differences which made me realize this is more tricky than I thought and that I don't 100% understand what is going on. If someone can help, please let me know in the comments.
Invoking docker
in MSYS2 shell or Git Bash typically fails with complains about paths, for example:
#!/bin/bash | |
CL_NULL='\e[0m' | |
CL_FAIL='\e[0;31m' | |
CL_NICE='\e[0;32m' | |
CL_WARN='\e[0;33m' | |
CL_BLUE='\e[0;34m' | |
CL_PURP='\e[0;35m' | |
CL_CYAN='\e[0;36m' |
var json = { | |
email : "santiago@konacloud.io", | |
name : "Santiago Cotto" | |
}; | |
var qr = require('qr-image'); | |
var mongoose = require('mongoose'); | |
var image = qr.imageSync(JSON.stringify(json), { type: 'png', size : 10 }); | |
var Grid = require('gridfs'); |
exports.createHandler = function (method) { | |
return new Handler(method); | |
} | |
Handler = function(method) { | |
this.process = function(req, res) { | |
params = null; | |
return method.apply(this, [req, res, params]); | |
} | |
} |