Skip to content

Instantly share code, notes, and snippets.

View yubeloborodov's full-sized avatar
:octocat:
Working from home

Yury Beloborodov yubeloborodov

:octocat:
Working from home
View GitHub Profile
@yubeloborodov
yubeloborodov / groupedByKey.txt
Last active December 4, 2023 10:48
Схлопнуть объект по ключу и посчитать сумму поля
Схлопнуть объект по ключу и посчитать сумму поля
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]
)
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
@yubeloborodov
yubeloborodov / vs-code-setup
Last active January 12, 2021 18:18
my-vs-code-setup
{
"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,