Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@azevakin
azevakin / conventional-commits-cheatsheet.md
Created January 23, 2026 07:26 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet
@azevakin
azevakin / practicum.py
Created February 23, 2021 12:39
practicum
def task1(list1, list2):
return list(set(list1) - set(list2))
def task2(list_):
for i in range(len(list_)-1, -1, -1):
if list_[i] == 0:
del list_[i]
return list_
from pprint import pprint;
from geopy.geocoders import Nominatim;
n = Nominatim();
pprint(n.geocode('111, 1st Avenue, New York', addressdetails=True, geometry='geojson').raw)
{u'address': {u'city': u'NYC',
u'country': u'United States of America',
u'country_code': u'us',
u'county': u'New York County',
@azevakin
azevakin / convert.bas
Created January 21, 2016 06:43
Макрос LibreOffice / OpenOffice для сохранения всех открытых doc файлов в формат docx
REM Макрос для сохранения всех открытых doc файлов в формат docx
sub Main
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
Docs = Stardesktop.getComponents
DocsList= Docs.createEnumeration
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "URL"
@azevakin
azevakin / get_full_path.py
Last active November 19, 2015 11:29
Django template filters for replace page number in GET and return urlquoted full_path of request
from django.utils.encoding import (escape_uri_path, iri_to_uri)
from django.utils.http import urlquote
@register.filter()
def get_full_path_with_page(request, page):
"""
In template
{% load get_full_path %}
{% for num in page_obj.page_range %}
{% if num == page_obj.number %}