git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
git branch --merged master | grep -v master | xargs git branch -d
Group multiple items in a hash, when the keys are created dynamically
commodities_per_material_types = production_weights.inject(Hash.new { |h, k| h[k] = [] }) do |memo, pw|
memo[pw.material_type.name] << pw.actual_commodities
memo
end
We have to use hash = Hash.new { |h, k| h[k] = [] }
so that each call to an unknown key of the hash returns a different Array instance.
atom-text-editor::shadow .lines .keyword.operator {
font-family: "FiraCode-Light";
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow .lines .cursor-line .keyword.operator {
text-rendering: auto;
}
(stolen from: http://netcell.github.io/2016/05/ligature-with-unsupported-font-in-atom/) and to get the styling for Operator Mono https://gist.github.com/brandondurham/3828ac42766f9f187c8e
Styling to use Operator Mono:
atom-workspace,
atom-text-editor {
font-family: "OperatorMono-Light";
font-weight: normal;
}
atom-panel.tool-panel {
}
.editor .comment,
atom-text-editor.editor {
font-family: "OperatorMono-Light";
font-style: normal;
}
atom-text-editor.editor .syntax--comment {
font-family: "OperatorMono-LightItalic";
font-style: normal;
}
.syntax--keyword, .syntax--control, .syntax--attribute-name {
font-style: italic;
}