10 private links
Curry? # Currying is a technique that translates a function of arity N into a sequence of functions that all have the arity 1. Function arity means the number of arguments a function takes. # The add function has the arity of 2 add = fn x, y ->... | Patrik Storm | Svbtle
TIL of it
M=must, S=should, C=could, W=won't
Intéressant comme tests
Another example from Brazil at Silicon Valley
Use AI to change art into functional QR Code (quite impressive).
Solução completa para investimentos alternativos! Se seu backoffice te coloca em apuros, corra para as montanhas.
This is from Collaborative Fund article about Brazil at Silicon Valley (BST)
Currying is when you break down a function that takes multiple arguments into a series of functions that each take only one argument. Here's an example in JavaScript:
['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