const groupBy = key => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = obj[key];
objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
return objectsByKeyValue;
This file contains hidden or 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
# Makefile for transpiling with Babel in a Node app, or in a client- or | |
# server-side shared library. | |
.PHONY: all clean | |
# Install `babel-cli` in a project to get the transpiler. | |
babel := node_modules/.bin/babel | |
# Identify modules to be transpiled by recursively searching the `src/` | |
# directory. |
IMPORTANT NOTE: Tested in macOS
For use this bash it needs run in the $HOME folder and execute this command:
~ sudo chmod +x install_vim.sh
Then:
~ ./install_vim.sh
This file contains hidden or 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
function current_branch() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} | |
function gpull() { | |
git pull origin $(current_branch) | |
} | |
function gpush() { |
IMPORTANT NOTE: Only tested under linux/debian 7.0
For use this bash it needs run in the $HOME folder and execute this command:
~ sudo chmod +x install_emacs_24.5.sh
Then:
~ ./install_emacs_26.sh
NewerOlder