cd git-monorepo
env PACKAGE_NAME=babel/babel-bridge node import | bash
This file contains hidden or 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
| interface NestedWalker { | |
| protected ctx: { path: string, cell: BemEntityName }; | |
| protected naming: BemNamingEntity; | |
| public isLeaf(path): boolean; | |
| public isDir(path): boolean; ← should we go deeper? | |
| }; | |
| /* | |
| /lib ← level, library |
This file contains hidden or 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
| node_modules | |
| /ui-kit | |
| /button | |
| /button.css | |
| /[email protected] | |
| vs | |
| node_modules | |
| /ui-kit |
- https://blog.juliobiason.net/thoughts/things-i-learnt-the-hard-way/ — куча полезного (перевод на хабре)
- https://reactjs.org/docs/hooks-intro.html — Classes confuse both people and machines
- https://reactjs.org/docs/higher-order-components.html — HoC
- https://learn.javascript.ru/modules — Модули
- https://habr.com/ru/post/181536/ — Путь JS модуля
This file contains hidden or 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 args = process.argv.slice(2); | |
| const cell = { | |
| block: args[0], | |
| mod: { | |
| name: args[1], | |
| val: args[2], | |
| } | |
| }; |
This file contains hidden or 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
| import { createEffect, createEvent, Effect, Event } from 'effector'; | |
| export interface ContinuousEffect<Params, Done, Payload = Done, Fail = Error> extends Effect<Params, Done, Fail> { | |
| readonly progress: Event<{params: Params; result: Payload}> | |
| readonly progressData: Event<Payload> | |
| } | |
| export function createContinuousEffect<Params, Done, Payload = Done, Fail = Error>( | |
| handler: ((params: Params) => Done | Promise<Done> | Iterator<Payload, Done> | AsyncIterator<Payload, Done>) | |
| ) { |
This file contains hidden or 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
| // Нужно открыть devtools в хроме или firefox, и скопировать туда полностью содержание файла | |
| // Вспомогательная пауза для 429 | |
| const pause = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
| // Забираем список на кого мы подписаны из ручки | |
| const subscriptionReq = await fetch('https://rutube.ru/api/v1/subscription/cards/detail?limit=1000&offset=0', { credentials: 'include' }); | |
| const { results } = await subscriptionReq.json(); | |
| // Бежим подряд без параллелизма, рутуб всё равно ограничивает кол-во запросов с клиента, поэтому смысла ускорять нет, не даст быстрее |
| Команда | Что делает | На чьей стороне |
|---|---|---|
gpg --full-generate-key |
Генерируем ключи | Получатель файла |
gpg --armor --export {KEY_ID} > {KEY_ID}.pub.gpg |
Выгрузка ключа для передачи | Получатель файла |
gpg --import {KEY_ID}.pub.gpg |
Импорт ключа для шифрования | Владелец файла |
gpg -r {KEY_ID} -e {FILE} |
Шифрование файла | Владелец файла |
(Unknown author)
This is one of the classic mistakes of problem solving - you think you understand what's going on, but you didn't look deep enough or get enough information to really get it. Before starting to solve any problem, be sure you spend some time and be absolutely sure you understand exactly what's going in.
OlderNewer