Skip to content

Instantly share code, notes, and snippets.

Avatar
🆗
"feeling fine"

Will Myers griffinmyers

🆗
"feeling fine"
View GitHub Profile
@gaearon
gaearon / slim-redux.js
Last active Jul 12, 2021
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname