- @xable [Telegram]
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
#include <iostream> | |
using namespace std; | |
template<class Tkey, class Tvalue = Tkey> | |
class BinaryTree | |
{ | |
public: | |
BinaryTree() | |
{ | |
this->Size_main = 0; |
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 admin.logic_register import logOUT, logIN, OnlyAuthorizedUser, is_Authorized | |
#! | |
admin_app = Blueprint('admin_app', # Должно совпадать с именем переменной экземпляра | |
__name__, | |
template_folder="templates", | |
static_folder="static") | |
for_key_session_verification = "admin_logged" # Ключ для проверки данных в сессии | |
@admin_app.route('/login', methods=['POST', 'GET']) |
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 csv | |
import os | |
from os import remove | |
from os.path import abspath, exists, getsize | |
from typing import List, Union | |
class File: | |
""" | |
)Утилиты |
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 random | |
import secrets | |
import time | |
from collections import deque | |
from pprint import pprint | |
class SymmetricCrypto: | |
CHAR_ARR: tuple = ( | |
'а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', |
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
# Источник: https://gist.github.com/denisxab/7b91e1d09ff8fbe6d8e738a5326e9ced | |
###################################################################################### | |
# Путь к внешенму диску | |
export DISK="/home/denis/DISK" | |
###################################################################################### | |
# Можем настраивать различные варинты для клиента и сервера | |
export IS_SERVER="no" | |
# Путь к Bahler |
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
" Место для плагинов | |
call plug#begin('~/.vim/plugged') | |
Plug 'preservim/nerdtree' | |
" Initialize plugin system | |
call plug#end() | |
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
# Источник: https://gist.github.com/denisxab/e0b547f143de9b8c7471395a3fb4180c | |
# Поддержа мыши | |
set -g mouse on | |
# | |
## Поменять ctrl+b на ctrl+spase; | |
set -g prefix C-Space | |
bind C-Space send-prefix | |
unbind C-b | |
## Поменять % " для разделения окна |
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
[Midnight-Commander] | |
verbose=true | |
shell_patterns=true | |
auto_save_setup=true | |
preallocate_space=false | |
auto_menu=false | |
use_internal_view=true | |
use_internal_edit=true | |
clear_before_exec=true | |
confirm_delete=true |
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 itertools import islice | |
from pprint import pformat, pprint | |
from typing import NamedTuple, Optional, Any, Union | |
from orjson import loads | |
from requests import get | |
class TypeSpellData(NamedTuple): | |
"""Объект, в котором храниться ответ от сервера""" |
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 enum import Enum | |
from pprint import pformat | |
from random import randint | |
from time import time | |
from typing import NamedTuple | |
from requests import post | |
class EnumLange(Enum): |
OlderNewer