We should always be delivering The Thing that has the most Business Value.
The ability to create and respond to change in order to succeed in an uncertain and turbulent environment.
| require 'fileutils' | |
| class CommitCommenter | |
| def initialize(git_project_path) | |
| @project_path = git_project_path.chomp | |
| end | |
| def latest_commit_hash | |
| FileUtils.cd(@project_path) | |
| return `git rev-parse HEAD`.chomp |
| set -g default-terminal "screen-256color" | |
| set -s escape-time 0 | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| unbind C-b | |
| set -g mouse on | |
| bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
| bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" |
| c | |
| c# | |
| c++ | |
| clojure | |
| common lisp | |
| crystal | |
| dart | |
| elixir | |
| erlang | |
| eve |
| (\n -> n * n) <$> [1, 2, 3, 4, 5] |
| // One liner. | |
| const reverseIt = (string, memo='') => string.length ? reverseIt(string.substr(1), string.substr(0,1) + memo) : memo | |
| // same as: | |
| function reverseIt2 (string, memo='') { | |
| if (string.length) { | |
| return reverseIt2(string.substr(1), string.substr(0,1) + memo); | |
| } else { | |
| return memo; |
| call plug#begin() | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'tpope/vim-sensible' | |
| Plug 'scrooloose/nerdtree' | |
| call plug#end() |
I hereby claim:
To claim this, I am signing this object:
| import { chunk } from 'lodash'; | |
| const darkenByPercentage = (hexString, percent) => | |
| chunk(hexString.substr(1).split(''), 2) | |
| .reduce((memo, pair) => [...memo, `0x${pair.join('')}`], '') | |
| .map(Number) | |
| .map(digit => digit - Math.ceil(digit * (percent / 100))) | |
| .reduce((memo, digit) => `${memo}${digit.toString(16)}`, '#'); | |
| // darkenByPercentage('#ffffff', 20); |