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
[[1127,"Цены становятся выше и выше.","Present continuous, НЕ BECOME","Prices **are** gett**ing** higher and higher.","",9,"2024.01.01","2024.01.02","2024.01.03,2024.01.04","tag1,tag2,Question"],
[1128,"Он отдыхает после работы.","Present continuous","He **is** rest**ing** after work.\n\nHe **is** hav**ing** a rest after work.","",0,"2024.05.02","","",""],
[1129,"Эта местность становится все более **загрязненной**.","Present continuous, замена BECOME","This area **is** gett**ing** more and more **polluted**.","",0,"2024.05.02","","",""],
[1130,"Солнце светит ярко.","Present continuous","The sun **is** shin**ing** brightly.","",0,"2024.05.02","","",""],
[1131,"Он **болтает** со своей женой.","Present continuous","He **is** chatt**ing** with his wife.","",0,"2024.05.02","","",""],
[1132,"Идет сильный дождь.","","It **is** rain**ing** heavily.","",0,"2024.05.02","","",""],
[1133,"Все делают это сейчас.","Present continuous","Everyone **is** do**ing** it now.","удивительно, но именно IS, а не ARE.",0,"2024.05.02"
@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 "e@w.com" # мыло (акк. на 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;
alias ls='ls -cvA --block-size=K --group-directories-first -1 --color=always'
alias gl='git log --pretty=format:"%h %C(magenta)%ad | %C(white)%s%d %C(magenta)[%an]" --date=short --graph --max-count=40 $*'
alias gs='git status'
alias ga='git add .'
alias gco='git commit -m $*'
alias push='git push'
alias pull='git pull'
alias pro='cd /mnt/d/projects' # ЗАМЕНИТЕ на путь к вашей директории проектов!