Skip to content

Instantly share code, notes, and snippets.

@yashaka
yashaka / how-to-add-markdown-to-tilda-page-ru.md
Last active November 10, 2025 11:20
Как добавить 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>
@yashaka
yashaka / LICENSE
Created October 16, 2025 08:31
Compex features test design template (very draft)
MIT License
Copyright (c) 2025 Iakiv Kramarenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@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 / table_page_object_draft_example.py
Created December 28, 2022 12:38
Table PageObject example [draft]
class Cell:
def __init__(self, element: Element):
self.element = element
self.input = self.element.element('input')
def start_editing(self):
self.element.double_click()
return self
def set(self, value):
@yashaka
yashaka / selenide_in_15_minutes_demo.py
Last active November 9, 2024 14:57
Notes from demo "Selenide in 15 minutes (in Python)" - version with waiting implemented from scratch and conditions as lambdas [ demoed in Minsk on 01.08.2015 ]
import contextlib
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import stopit
import time
browser = webdriver.Firefox()
@yashaka
yashaka / how-to-write-text-along-circle-path.md
Last active February 5, 2023 13:39
Как написать текст по кругу в svg
// виходить тут як раз воно не вилазить
function processResponse({response, ...rest}: {response: object} & {[key: string]: any}): {response: object;} & {[key: string]: any} {
// do something with response
return {response, ...rest}
}
// вилазити починає саме коли з'являється обмження що саме конкретно той тип А що зайшов на вхід то той і має вийти на виході...
function processResponse_<A>({response, ...rest}: {response: object} & A): {response: object;} & A {
// do something with response
@yashaka
yashaka / selene-custom-conditions-to-wait-for-several-elements.py
Created November 17, 2021 12:46
selene-custom-conditions-to-wait-for-several-elements.py
"""
можно передавать лямбды вместо кондишенов в Selene
но в лямбдах-кондишенах для Selene
нужно возвращать не тру/фолс, а просто кидать еррор если было фолс
например
"""
@yashaka
yashaka / a1-03-first-plan-01-task.md
Last active November 23, 2020 15:57
Перший план

Перший план

[TOC]

Цілі {#goals}

  • Навчитись аналізувати і систематизувати функціональність додатків на старті побудови тестування
  • Приорітизувати функціональність з точки зору важливості для користувача