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 os | |
| import json | |
| import time | |
| import requests | |
| import pandas as pd | |
| from datetime import datetime, timedelta | |
| from dotenv import load_dotenv | |
| from io import StringIO | |
| # Настройки |
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 locale | |
| import os | |
| import pandas as pd | |
| import plotly.express as px | |
| import plotly.graph_objects as go | |
| import requests | |
| import time | |
| from requests.exceptions import RequestException, Timeout, ConnectionError |
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
| # Установка библиотек | |
| !pip install -q edge-tts librosa soundfile numpy | |
| import asyncio | |
| import edge_tts | |
| import librosa | |
| import soundfile as sf | |
| from IPython.display import Audio, display | |
| import os |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Импорт библиотек | |
| import os | |
| import requests | |
| from datetime import datetime, timedelta, timezone | |
| import time | |
| import json |
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 collections import deque | |
| import sys | |
| sys.setrecursionlimit(10000) | |
| class Solitaire: | |
| def __init__(self): | |
| # Определяем валидные позиции на поле 7x7 | |
| self.valid_positions = [ | |
| (0, 2), (0, 3), (0, 4), | |
| (1, 2), (1, 3), (1, 4), |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # === 1. 📥 Импорт библиотек | |
| import locale | |
| import os | |
| import pandas as pd | |
| import requests | |
| from datetime import datetime, timedelta | |
| from dotenv import load_dotenv |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Установка необходимых библиотек | |
| !pip install -q diffusers accelerate transformers pillow safetensors | |
| # Импорт библиотеки torch | |
| import torch | |
| # Проверяем доступность CUDA |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Импорт библиотек | |
| import pandas as pd | |
| import numpy as np | |
| import openpyxl | |
| import plotly.express as px | |
| import plotly.graph_objects as go | |
| import warnings |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Импорт нужных библиотек | |
| import duckdb | |
| import pandas as pd | |
| import numpy as np | |
| # Для вывода подсвеченного кода SQL | |
| from rich.console import Console |
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
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| """ | |
| Подключение к БД PostgreSQL на Railway hosting | |
| """ | |
| !pip install psycopg2-binary --quiet # Ставим psycopg, если ещё не установлено | |
| # 1. Ставим нужные библиотеки | |
| import os |
NewerOlder