Skip to content

Instantly share code, notes, and snippets.

View viT-1's full-sized avatar

Vitaly Pinchuk viT-1

View GitHub Profile
@viT-1
viT-1 / github-cli.md
Last active December 16, 2021 12:18
#gist-bookmark #github #cli

The past and the future of hub by Mislav Marohnić 30.01.2020

I have been maintaining hub, the command-line git extension, for 10 years. After 2,100 issues and pull requests closed, 18k+ stars on GitHub, and countless hours invested in it, I thought it might be fitting to reflect on its unlikely past, share a bit about my process working on it, and address the future of GitHub on the command line.

@viT-1
viT-1 / gist-profit.md
Created December 16, 2021 12:25
#gist-bookmark #github #gist

Little Known Ways To Utilize GitHub Gists by David Singer 27.02.2020

There are multiple ways to utilize gists. Here are a few examples we have found that are very useful in our daily activities.

  • As a task lists.
  • Organize notes.
  • As a writing platform.
  • To Save links.
  • To Write anonymous text.
  • Track text changes.
@viT-1
viT-1 / gist-data.md
Last active December 17, 2021 09:54
#gist-bookmark #gist #github
@viT-1
viT-1 / gist-search-api.md
Last active December 17, 2021 09:23
#gist-bookmark #gist #api #search
@viT-1
viT-1 / github-master-to-main-branch.md
Created December 17, 2021 12:50
#gist-bookmark #git #github #tolerance
@viT-1
viT-1 / eslint-global-rc.md
Last active December 20, 2021 10:25
#gist-bookmark #eslint #js

eslint since v7 warns about deprecation of root config Now, if you have eslint config in your project and global config, you should define it as root config (loss or copy/paste all recommended rules - preferred way with saving rules relate to project) or define extends key with file system dotted path! 🤦‍♂️

If you want to have shared rules for different projects and don't want hardcoding path to file with common rules, you should create your custom eslint plugin with your rules (may be based on other recommended rules).

@viT-1
viT-1 / js-better-to-stop-using-classes.md
Last active January 13, 2022 09:35
#gist-bookmark #js #es6 #es5 #class #oop #prototype #styleguide #decorator #computed #getter-setter
@viT-1
viT-1 / esm-alias-resolve.md
Last active January 21, 2022 13:24
#gist-bookmark #js #esm #importmap #import #alias

Если не использовать TypeScript, который при tsc-трансформации в js пропишет нужные пути в import при помощи transform и карты путей/alias, то в браузерах в importmap следует указывать путь не только для сторонних библиотек, но и под каждый импортируемый через alias файл! Спецификация importmap не предполагает glob-масок.

При этом eslint, jest и webpack конфигурируются по-своему, получаем дублирование кода. Нужда в конвертерах [eslint-typescript](http

@viT-1
viT-1 / http-2-and-optimization.md
Created December 24, 2021 07:26
#gist-bookmark #http #css #server
@viT-1
viT-1 / makeev-opera.md
Created December 24, 2021 12:24
#gist-bookmark #opera