Skip to content

Instantly share code, notes, and snippets.

View nicothin's full-sized avatar
🏠
Working from home

Nikolay Gromov nicothin

🏠
Working from home
View GitHub Profile
@nicothin
nicothin / phrases.json
Last active September 9, 2024 19:37
TEST
[[1360,"Дьявол в мелочах.","","The devil is in the details.","",0,"2024-08-31T18:00:00.000",""],
[1359,"Это приводит к постепенному увеличению **потребления памяти**.","","This leads to a gradual increase **in memory consumption**.","",0,"2024-08-20T18:00:00.000",""],
[1358,"Я **выпускаю** новую версию.","","I'm **releasing** a new version.","",2,"2024-08-20T18:00:00.000",""],
[1357,"Наконец она решила **отпустить** его.","","Finally she decided **to release** him.\n\nFinally she decided to let him go.","",1,"2024-08-20T18:00:00.000",""],
[1356,"Подобные инциденты будут продолжать **случаться**.","Подобные инциденты будут происходить и впредь.","Such incidents will continue **to occur**.\n\nIncidents like this will continue to happen.","",2,"2024-08-20T18:00:00.000",""],
[1355,"Утечки трудно обнаружить.","","Leaks are difficult **to spot**.\n\nLeaks are difficult to detect.","",0,"2024-08-20T18:00:00.000",""],
[1354,"Иногда сигналы могут быть очень **тонкими/неуловимыми**.","","Sometimes the signals can be ve
[[1414,"Вы уверены, что достаточное количество людей **посетит** мероприятие?","","Are you sure that enough people will **attend** the event?","",1,"2024-11-08T17:56:59.778",""],
[1413,"Встреча в пять, и я надеюсь, все **примут участие**.","принять участие / прийти\n\nне **to be present**, не **to visit**","The meeting is at five and I hope everyone **will attend**.","",1,"2024-11-08T23:58:44.957",""],
[1412,"Пожалуйста, дайте нам знать, если вы не сможете **присутствовать**.","не to be present","Please let us know if you are unable **to attend**.","",0,"2024-11-09T03:16:10.597",""],
[1411,"**Поэтому** выполнение ресурсоемких операций может заблокировать UI.","","**Therefore**, performing resource-intensive operations may block the UI.","",0,"2024-10-21T13:19:26.774",""],
[1410,"**Поэтому** выполнение ресурсоемких операций может заблокировать UI.","","**Therefore**, performing resource-intensive operations may block the UI.","",0,"2024-10-22T07:19:26.774",""],
[1409,"**Было бы удобно** хранить кастомные поля
@nicothin
nicothin / mergeObjectsRecursively.ts
Created April 5, 2024 19:16
merge Objects Recursively
import isEqual from 'lodash.isequal';
type AnyObj = Record<string, any>;
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void
? I
: never;
export const mergeObjectsRecursively = <T extends AnyObj, U extends AnyObj[]>(
...objects: [T, ...U]
): T & UnionToIntersection<U[number]> => {
@nicothin
nicothin / some.js
Last active November 1, 2022 15:46
Get matrix fragment in Javascript
const arr =[
[1, 2, 3, 4, 5, 6, 7, 8, 9, ],
[10, 20, 30, 40, 50, 60, 70, 80, 90, ],
[11, 12, 13, 14, 15, 16, 17, 18, 19, ],
[21, 22, 23, 24, 25, 26, 27, 28, 29, ],
[31, 32, 33, 34, 35, 36, 37, 38, 39, ],
];
const getMatrixFragment = (
matrix = [[]],
{
// Custom snippets definitions
"snippets": {
"html": {
"filters": "html, bem",
"snippets": {
"blq": "<blockquote>${1:}</blockquote>",
}
},
"pug": {
git config --global user.name "Name" # имя
git config --global user.email "[email protected]" # мыло (акк. на Github)
git config --global color.ui true # цвет ВКЛ.
# Только для Windows:
git config --global core.autocrlf true
{
"destination": "clipboard",
"bem_nesting": true,
"indentation": " ",
"empty_line_before_nested_selector": true
}
set background=dark
set bell-style none
@nicothin
nicothin / .bashrc
Last active September 16, 2019 04:16
# cd /mnt/d/projects/ # переход к указанному каталогу при запуске етрминала
# chmod 777 ~/.bashrc # если редактировали этот файл из Windows
#! /bin/bash
# eval `ssh-agent -s` && ssh-add # вынес в алиас для запуска SSH-агента вручную
# Раскомментить, чтобы видеть коды цветов при запуске терминала
# for((i=16; i<256; i++)); do
# printf "\e[48;5;${i}m%03d" $i;