17 private links
It is now available with the latest PM2 version:
{
apps : [{
name : 'API',
script : 'api.js',
interpreter : 'node@6.9.1'
}]
}
https://github.com/Unitech/pm2/blob/master/test/fixtures/nvm-node-version/ecosystem.json#L12
A new kind of emoji set. Mutant Standard breaks the traditional conventions of emoji to give you more inclusivity, choice and freedom.
const result = _.map({a: 1, b: 2}, function(value, key) {
return value + key;
});
Since nobody has added the obvious solution yet which works fine for two comparisons, I'll offer it:
if (foobar == foo || foobar == bar) {
//do something
}
And, if you have lots of values, then I'd suggest making a Set as this makes very clean and simple comparison code and it's fast at runtime:
// pre-construct the Set
var tSet = new Set([foo, bar, test1, test2, test3]);
// test the Set at runtime
if (tSet.has(foobar)) {
// do something
}
For pre-ES6, you can get a Set polyfill of which there are many. One is described in this other answer.
Practical advice for managing Imposter Syndrome.
Mike Bostock’s Block 3808218
Jane Pong’s Block 9b9e606e9876e34385cc4aeab188ed73
The missing link between spreadsheets and data visualization.
You can use environment variable.
For example:
1) NODE_PORT=3002 pm2 start -I 0 app.js
2) Read value in app:
console.log(process.env.NODE_PORT);
Or, if you are build express app:
1) PORT=3002 pm2 start -I 0 ./bin/www
2) Express load PORT automatically at start application.
Retrouvez ou découvrez les films que vous aimez en vidéo à la demande (VàD) avec ou sans abonnement, par téléchargement ou streaming, sur votre ordinateur, votre tablette mobile ou votre box grâce à ce moteur de recherche.