links for old versions of Docker for Mac
Docker provides download links in release note. They promised that
(we) will also include download links in release notes for future releases.
Note:
# Type(<scope>): <subject> | |
# <body> | |
# <footer> | |
# Type should be one of the following: | |
# * feat (new feature) | |
# * fix (bug fix) | |
# * docs (changes to documentation) |
#!/bin/bash | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
const randomColor = '#' + ((1 << 24) * Math.random() | 0).toString(16); |
const pipe = (...functions) => startingValue => functions.reduce((actualValue, fn) => fn(actualValue), startingValue) | |
const sumTwo = (a) => a + 2 | |
const mult = (a) => a + 2 | |
const repeat = times => fn => Array(times).fill(fn) | |
const doTimes = times => fn => x => pipe(...repeat(times)(fn))(x) | |
const sumTwo4Times = doTimes(4)(sumTwo) |
const transformIndex = (index, groupEach, offset) => | |
offset + (index - offset - Math.ceil((index - offset) / groupEach)) | |
const transformIndexEachThreeWithOneOffset = (index) => transformIndex(index, 3, 1) | |
function groupArrayEach(arr, groupEach=3, offset=0) { | |
return arr.reduce(function(acc, e, index) { | |
const newIndex = transformIndex(index, groupEach, offset) | |
acc[newIndex] = acc[newIndex] || [] | |
acc[newIndex].push(e) | |
return acc |
const obj = { a: 1, c: 3, b: 2 } | |
// Map from object. | |
const myMap = new Map(Object.entries(obj)) | |
// Map to Object. | |
// NOTE: Keys will be cast to strings by `.toString`, so any "complex" key like for example `[1, 2]` will become `1,2` | |
const newObj = [...myMap.entries()] | |
.reduce((acc, [key, value]) => (Object.assign(acc, { [key]: value })), {}) |
Docker provides download links in release note. They promised that
(we) will also include download links in release notes for future releases.
Note:
token_helper = "/Users/me/.vault-helper" |
token_helper = "/Users/me/.vault-helper" |