HN user

marcmarc

7 karma
Posts1
Comments15
View on HN

The Gini coefficient is a relative measure. It is possible for the Gini coefficient of a developing country to rise (due to increasing inequality of income) while the number of people in absolute poverty decreases. This is because the Gini coefficient measures relative, not absolute, wealth. In Capital in the 21st Century, Piketty is looking at wealth groups (top 1%, top 10%, rest of the population). And it paints a very different picture.

I use Emacs inside VSCode's terminal just for Magit. And I've configured Emacs to open directly with the magit-status buffer. It beats all the VSCode extensions I have tested.

  (when (string-match "code" default-directory)
    (magit-status)
    (delete-other-windows))
  (with-eval-after-load 'magit
    (define-key magit-status-mode-map (kbd "q") 'save-buffers-kill-terminal))

When you have 100 or more buffers open, you may have two files with the same name. Using uniquify (require 'uniquify) helps differentiate them. Instead of getting file<1> and file<2> you get file:"directory_1" and file:"directory_2".

Here's my take:

  function curry(fn, args) {
    if (typeof args == "undefined" || args.length < fn.length)
      return function() {
	if (typeof args == "undefined")
	  args = [];
	return curry(fn, args.concat(Array.prototype.slice.call(arguments)));
      };
    return fn.apply(this, args);
  }
  var add = curry(function(a, b, c) { return a + b + c;});