Skip to content

Instantly share code, notes, and snippets.

View leshchenko1979's full-sized avatar

Alexey Leshchenko leshchenko1979

  • Redevest
  • Moscow
  • 02:44 (UTC +03:00)
View GitHub Profile
@leshchenko1979
leshchenko1979 / business-memory-bank.mdc
Last active September 24, 2025 08:58
AI rules for business memory bank
---
alwaysApply: true
---
AI Agent Memory Management Rules (Business Context)
This document contains the core rules that an AI agent should
follow when interacting with the file system to manage its business memory.
The goal of these rules is to ensure the consistency,
@leshchenko1979
leshchenko1979 / timepad_ru_promocodes.py
Last active May 17, 2022 09:09
Извлечь промокоды со страницы со списком промокодов, сгенерированным на timepad.ru
# 1. Сгенерировать промокоды на Timepad.ru
# 2. Открыть код страницы и скопировать оттуда тег <table> с таблицей с промокодами
# 3. Ввести этот текст в содержимое переменной `promocodes` ниже
# 4. Запустить код
# 5. Код выдаст список с промокодами
promocodes = """
<table><tbody><tr class="t-header t-caption groupdiscount__table-header"><td width="25%">Номер</td><td width="35%">Статус</td><td width="40%">Код</td></tr><tr class="ctypography ctypography__small"><td>1</td><td>Не использован</td><td>I181YRMTT7</td></tr><tr class="ctypography ctypography__small"><td>2</td><td>Не использован</td><td>F3OXIEGPD2</td></tr><tr class="ctypography ctypography__small"><td>3</td><td>Не использован</td><td>KVHXDQRT95</td></tr><tr class="ctypography ctypography__small"><td>4</td><td>Не использован</td><td>JBUBVV9JTK</td></tr><tr class="ctypography ctypography__small"><td>5</td><td>Не использован</td><td>BP0HOBQTB2</td></tr><tr class="ctypography ctypography__small"><td>6</td><td>Не использован</td><td>VO4GJIKB85</td></tr><tr
@leshchenko1979
leshchenko1979 / fast_bitrix24_strategy_test.py
Last active January 18, 2021 10:18
Сравниваем стратегии паджинации в Битрикс24
from asyncio import gather
from contextlib import contextmanager
from time import monotonic
from fast_bitrix24 import Bitrix
from fast_bitrix24.utils import http_build_query
from more_itertools import chunked
bitrix = Bitrix('ХХХХХХХХХХХХ',
verbose=False)