10 private links
['1', '7', '11'].map(parseInt) doesn’t work as intended because map passes three arguments into parseInt() on each iteration. The second argument index is passed into parseInt as a radix parameter. So, each string in the array is parsed using a different radix. '7' is parsed as radix 1, which is NaN, '11' is parsed as radix 2, which is 3. '1' is parsed as the default radix 10, because its index 0 is falsy.
And so, the following code will work as intended:
['1', '7', '11'].map(numStr => parseInt(numStr));
Unsubscribing should be easy. It’s not.
This article provides an in-depth overview of how routing works in Rails. We'll start from basics and cover the advanced features of the Router.
Gear can make or break your home office setup. Here’s our ultimate list of more than 120 items, from monitors and desks to webcams and chairs.
Another crossfit box
Hi Is there a way to set up morgan to skip adding new line when using stream option? I am combining morgan's output to winston and both are adding LF line feed which results in double new lines...I can strip out the newline when it comes...
This is how
var split = require('split');
var winston = require('winston');
winston.emitErrs = true;
var logger = new winston.Logger({
transports: [
new winston.transports.File({
level: 'info',
filename: './logs/all-logs.log',
handleExceptions: true,
json: true,
maxsize: 5242880, //5MB
maxFiles: 5,
colorize: false
}),
new winston.transports.Console({
level: 'debug',
handleExceptions: true,
json: false,
colorize: true
})
],
exitOnError: false
});
module.exports = logger;
module.exports.stream = split().on('data', function (message) {
logger.info(message);
});Hmmm, I do recognize a few of the symptoms mentioned here.
Discovered this thanks to this talk. An interesting take to simplify things instead of relying on React.
Une autre histoire des déchets radioactifs mais avant que ce ne soient des déchets de centrales. À étudier pour le côté négatif du nucléaire.
An interesting take on designing a payment system
How to manage shared calendar and access them in iOS calendar app
Recommended reading to understand more between these two
Recommended playlist
Another class recommended for React
An example of distributed transaction
Keep the article for the many references and sources.
Via Sebsauvage a personal wiki in a single HTML file
The algorithm behind Manifold which represents a market for any question, using fake currency.
CS class recommended by the Godot engine