This file contains 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
Docker | |
# Build a new image locally | |
docker build --no-cache -t hello-world:latest . | |
# Run a new image built and enter bash | |
docker run --name hello-world --rm -p 8080:8080 -it hello-world:latest bash |
This file contains 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
'use strict'; | |
const tests = 25; | |
const total = 1e6; | |
let holder; | |
// const action = () => { | |
// const x = process.hrtime(); | |
// const y = process.hrtime(x); | |
// holder = Math.round(y[0] * 1e3 + y[1] / 1e6); | |
// }; |
This file contains 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
[~/Proj]$ npm prune --production | |
unbuild babel-loader@6.2.2 | |
... | |
unbuild babel-register@6.5.1 | |
unbuild babel-core@6.5.1 | |
unbuild babel-preset-es2015@6.5.0 | |
unbuild babel-preset-react@6.5.0 | |
... | |
unbuild babel@6.5.1 | |
... |
This file contains 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
// Actually in HomeRoute.js, but object here for simplicity | |
const HomeRoute = { | |
path: 'home', | |
getComponent(location, cb) { | |
require.ensure([], (require) => { | |
console.log('I got here.'); | |
cb(null, require('./components/home')); | |
}); | |
} | |
} |
This file contains 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 console = (function(window) { | |
/** | |
* Simple simulator to convert the JSFiddle results panel into a console | |
* @author mreynolds | |
*/ | |
var Console, console; | |
if (typeof console === 'undefined') { | |
Console = function Console() { | |
var target; | |
this.el = window.document.createElement('div'); |