Skip to content

Instantly share code, notes, and snippets.

View tbicr's full-sized avatar

Paveł Tyślacki tbicr

  • pandadoc.com
  • Miensk, Biełaruś
View GitHub Profile
@tbicr
tbicr / lru_cache.py
Last active March 21, 2024 15:00
lru cache
# lru cache implementation
# as params (can) require number of elements to keep in cache
# as requirement input data for effective caching should be hashable and comparable ie. able to be used as dict key
# 1. build in cache
from functools import lru_cache
# 2. OrderedDict
from collections import OrderedDict
from functools import wraps
@tbicr
tbicr / akruha_deputat.json
Last active July 27, 2020 22:17
Mapinh UVK na vybarčaju akruhu i deputata
[
{
"name_be": "Брыч Леанід Рыгоравіч",
"name_ru": "Брич Леонид Григорьевич",
"no": 1,
"no_name_be": "Брэсцкая-Заходняя акруга № 1",
"no_name_ru": "Брестский-Западный округ № 1",
"comment_be": "старшыня Пастаяннай камісіі па эканамічнай палітыцы",
"comment_ru": "председатель Постоянной комиссии по экономической политике"
},
@tbicr
tbicr / approx_division.geojson
Created June 28, 2020 11:06
Belarus approximate division belstat early 2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / division.geojson
Last active June 28, 2020 10:51
Belarus division belstat early 2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / division.geojson
Last active June 26, 2020 21:10
Belarus division
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / division.geojson
Created June 24, 2020 11:10
Belarus division 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / division.geojson
Created June 24, 2020 11:09
Belarus division 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / division.geojson
Last active June 24, 2020 10:58
Belarus region division
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / geo_pop.geojson
Created June 21, 2020 23:39
belarus approximate age-gender-geo population division
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbicr
tbicr / miensk.json
Created June 14, 2020 21:01
Vybarčaja akruha Miensku
[
{
"state": "Минск",
"region": "Советский",
"no": 1,
"area": [
{
"type": "addr",
"stat": "улица",
"name": "Л.Е.Маневича",