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
| [ | |
| { | |
| "key": "shift+cmd+g", | |
| "command": "workbench.view.scm", | |
| "when": "workbench.scm.active" | |
| }, | |
| { | |
| "key": "ctrl+shift+g", | |
| "command": "-workbench.view.scm", | |
| "when": "workbench.scm.active" |
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
| set number " показывать номера строк | |
| syntax on " включить подсветку синтаксиса | |
| set termguicolors " использовать truecolor (24-bit цвета) | |
| set mouse=a " включить мышку во всех режимах | |
| set clipboard=unnamedplus " использовать системный буфер обмена macOS | |
| set nowrap " не переносить длинные строки | |
| set cursorline " подсвечивать текущую строку | |
| set scrolloff=8 | |
| nnoremap <C-d> 10j |
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
| // Make sure to open LinkedIn Connections page | |
| // and then run this script in the console. | |
| async function deleteConnections(howMany) { | |
| const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| const connectionButtons = Array.from(document.querySelectorAll('button.mn-connection-card__dropdown-trigger')).slice(0, howMany); | |
| for (const button of connectionButtons) { |
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
| from datetime import datetime, timedelta | |
| from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials | |
| from fastapi import Request, HTTPException, status, Depends | |
| from passlib.context import CryptContext | |
| from jose.exceptions import JWTError | |
| from jose import jwt | |
| from sqlalchemy import select | |
| from db.base import database |
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
| def list_node_to_list(l): | |
| result = [] | |
| list_node = l | |
| while list_node: | |
| result.append(list_node.val) | |
| list_node = list_node.next | |
| return result | |
| def list_to_list_node(l): | |
| li = None |