This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Схлопнуть объект по ключу и посчитать сумму поля | |
const groupedByKey = R.pipe( | |
R.groupBy(R.prop('key')), | |
R.mapObjIndexed((x) => | |
R.assoc( | |
'commonCost', | |
x.reduce((sum, y) => y.commonCost + sum, 0), | |
x[0] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RELEASE="15.2.0" | |
mkdir /tmp/iosevka-font/v$RELEASE | |
cd /tmp/iosevka-font/v$RELEASE | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-aile-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-curly-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-curly-slab-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-etoile-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-fixed-$RELEASE.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.zoomLevel": 1, | |
"terminal.integrated.cursorBlinking": true, | |
"terminal.explorerKind": "external", | |
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"files.autoSave": "afterDelay", | |
"editor.smoothScrolling": false, | |
"editor.renderWhitespace": "all", | |
"explorer.confirmDelete": false, | |
"editor.fontSize": 13, |