Skip to content

Instantly share code, notes, and snippets.

View atrskv's full-sized avatar
🐍

Aleksei Torsukov atrskv

🐍
View GitHub Profile
@yashaka
yashaka / python_decorators_to_log_function_calls_example.py
Created August 18, 2022 19:47
The code from lesson «Python Decorators to Log Test Steps»
import types
from functools import wraps
def humanify(name: str):
import re
return ' '.join(re.split('_+', name))
def step(fn):
@yashaka
yashaka / report.py
Last active January 20, 2025 23:23
your_project/helpers/allure/report.py (custom allure step impl example: human readable autogenerated titles with arguments and function context logged (class or module))
import re
import inspect
from functools import wraps
from allure_commons import plugin_manager
from allure_commons.utils import uuid4, func_parameters, represent
def step(title, display_params=True):
if callable(title):
@yashaka
yashaka / how-to-add-markdown-to-tilda-page-ru.md
Last active April 8, 2025 13:59
Как добавить markdown в tilda

Как добавить markdown в tilda

Базовой функционал

1 В head страницы добавляем:

<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
# install_certifi.py
#
# sample script to install or update a set of default Root Certificates
# for the ssl module. Uses the certificates provided by the certifi package:
# https://pypi.python.org/pypi/certifi
import os
import os.path
import ssl
import stat