[Link](#custom-id) |
Column 1 | Column 2 | Column 3 |
---|---|---|
text | Wrong original link to #custom-id |
Proper link to #header-custom-id |
[Link](#custom-id) |
Column 1 | Column 2 | Column 3 |
---|---|---|
text | Wrong original link to #custom-id |
Proper link to #header-custom-id |
anArray
.filter(x => x % 2) // odd only
.reduce(
(chain, x) => chain.then(() => networkCall(x)), // network call using an odd
Promise.resolve()
)
.then(() => console.log('all done')) // all calls complete
(See recipe for Windows below)
I've literally just come across this problem when trying to use IntelliJ
to push to a branch that contains a GitHub Action workflow (YAML
file in .github/workflows
).
I didn't find existing resources on the Internet very helpful, so I hope this will help you fix it too.
TL;DR: Generate a new Personal Access Token with the workflow
scope enabled in GitHub and configure your application to use that.
pip
+ venv
Reference:
/* | |
I came up with a single pass O(n) sort algorithm I call StalinSort. | |
You iterate down the list of elements checking if they're in order. | |
Any element which is out of order is eliminated. | |
At the end you have a sorted list. | |
© 2018-10-25, @mathew@mastodon.social | |
*/ | |
const stalinSortReduce = arr => arr.reduce((acc,v) => acc.length ? acc[acc.length-1] < v ? [...acc, v] : acc : [v], []) |