Skip to content

Instantly share code, notes, and snippets.

View AABur's full-sized avatar

Alexander Burchenko AABur

  • Dubai
  • 16:15 (UTC +04:00)
  • X @AABur
View GitHub Profile
@AABur
AABur / guide-to-contributing-to-github-project-RU.md
Last active July 28, 2021 11:58
the-beginners-guide-to-contributing-to-a-github-project (RU)

Руководство для начинающих по участию в проектах на GitHub

Адаптированный перевод статьи The beginner's guide to contributing to a GitHub project

Автор оригинала Rob Allen

Это руководство по внесению вклада в проект с открытым исходным кодом, использующий GitHub. Здесь приведено только общие рекомендации, поэтому ознакомьтесь с README вашего проекта для уточнения деталей.

В ДВУХ СЛОВАХ

@AABur
AABur / gist:382a7c93d756a509db33dedaa04cf275
Last active July 7, 2021 17:55
Hexlet.io GitHub repositories
[https://github.com/Hexlet?type=source]
https://github.com/hexlet-authors?type=source
https://github.com/hexlet-basics?type=source
https://github.com/hexlet-boilerplates?type=source
https://github.com/hexlet-components?type=source

https://apple.stackexchange.com/a/339577

Fix TL;DR version:

  1. Delete DropboxQL.qlgenerator from ~/Library/QuickLook
  2. Restart Finder
  3. sudo update_dyld_shared_cache -force
  4. Kill all QuickLook-related processes
  5. Restart Finder

Learn Makefiles with the tastiest examples

https://makefiletutorial.com/

I built this guide because I could never quite wrap my head around Makefiles. They seemed awash with hidden rules and esoteric symbols, and asking simple questions didn’t yield simple answers. To solve this, I sat down for several weekends and read everything I could about Makefiles. I've condensed the most critical knowledge into this guide. Each topic has a brief description and a self contained example that you can run yourself.

If you mostly understand Make, consider checking out the Makefile Cookbook, which has a template for medium sized projects with ample comments about what each part of the Makefile is doing.

Good luck, and I hope you are able to slay the confusing world of Makefiles!

Getting Started

@AABur
AABur / gist:cc66eec6dd9ec9dc0d70b58b9ed2f3f7
Last active May 31, 2021 12:06
How to add poetry to an existing project
https://github.com/python-poetry/poetry/issues/46#issuecomment-450329494
% poetry init
% poetry add `cat requirements.txt`
# FIXME: ward/_collect.py:61:1: C901 'get_info_for_modules' is too complex (15)
def get_info_for_modules(
paths: List[Path], exclude: Tuple[Glob]
) -> List[pkgutil.ModuleInfo]:
logger.info("Start get_info_for_modules")
paths = _remove_excluded_paths(set(paths), exclude)
module_infos = []
# Handle case where path points directly to modules
@AABur
AABur / naming.md
Last active October 23, 2022 13:33

Практичная структура для именования классов, функций и переменных

Перевод статьи A Useful Framework for Naming Your Classes, Functions, and Variables

Автор оригинала XOR

"В компьютерном программировании соглашение об именах — набор правил для выбора последовательности символов, которая будет использоваться для идентификаторов, которые обозначают переменные, типы, функции и другие объекты в исходном коде и документации." - Википедия

# coding: utf-8
import lxml.html
from .abstract import get_strategy
import pytest
class TestTags:
@pytest.mark.parametrize('start_urls_url, actual_url',