This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hello": "world" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/****/****/****/tests/test_views.py", line 130, in test_so_something | |
resp = client.post( | |
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 296, in post | |
response = super().post( | |
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 210, in post | |
return self.generic('POST', path, data, content_type, **extra) | |
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 234, in generic | |
return super().generic( | |
File "/****/****/****/venv/lib/python3.9/site-packages/django/test/client.py", line 542, in generic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def load_json(source): | |
with open(source, 'r') as handler: | |
return json.load(handler) | |
def load_utf_json(source): | |
with open(source, 'r', encoding="utf8") as handler: | |
return json.load(handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
# Square Pyramidal Numbers | |
# Problem: https://github.com/GeekBrainsTutorial/Python_lessons_basic/blob/master/lesson02/home_work/hw02_hard.py | |
def get_room_v1(number): | |
last_room = 0 | |
section = 0 | |
# last_floor = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
ИСТОЧНИК ДАННЫХ: https://hubofdata.ru/dataset/customs-stats | |
Файлы из архива были распакованы в директорию 'TCBT' | |
''' | |
import csv | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"24": "\u041a\u0440\u0430\u0441\u043d\u043e\u044f\u0440\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "25": "\u041f\u0440\u0438\u043c\u043e\u0440\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "26": "\u0421\u0442\u0430\u0432\u0440\u043e\u043f\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "27": "\u0425\u0430\u0431\u0430\u0440\u043e\u0432\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "20": "\u0427\u0435\u0447\u0435\u043d\u0441\u043a\u0430\u044f \u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430", "21": "\u0427\u0443\u0432\u0430\u0448\u0441\u043a\u0430\u044f \u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430", "22": "\u0410\u043b\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "23": "\u041a\u0440\u0430\u0441\u043d\u043e\u0434\u0430\u0440\u0441\u043a\u0438\u0439 \u043a\u0440\u0430\u0439", "28": "\u0410\u043c\u0443\u0440\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c", "29": "\u0410\u0440\u0445\u0430\u043d\u0433\u043 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
def inn_is_valid(target_inn): | |
# Проверяет валидность ИНН по контрольному числу | |
# Возвращает True в случае валидности и False в обратном случае | |
length = len(target_inn) | |
base = target_inn[:-1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import time | |
import csv | |
okpd_okdp = {'2109365': 'Бумага туалетная', '21.22.99.000 ': 'Услуги по производству хозяйственной и туалетной бумаги и бумажных изделий', '21.22.11.110': 'Бумага туалетная', '21.22.11.111': 'Бумага туалетная с массой 1 кв. м каждого слоя не более 25 г', '21.22.11.119': 'Бумага туалетная с массой 1 кв. м каждого слоя более 25 г'} | |
def make_dict(target_contract, target_product, target_code): | |
reg_num = target_contract[u'regNum'].encode('utf-8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import time | |
import csv | |
okpd_okdp = {'2109365': 'Бумага туалетная', '21.22.99.000 ': 'Услуги по производству хозяйственной и туалетной бумаги и бумажных изделий', '21.22.11.110': 'Бумага туалетная', '21.22.11.111': 'Бумага туалетная с массой 1 кв. м каждого слоя не более 25 г', '21.22.11.119': 'Бумага туалетная с массой 1 кв. м каждого слоя более 25 г'} | |
def make_dict(target_contract, target_product, target_code): | |
reg_num = target_contract[u'regNum'].encode('utf-8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Tableau</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script type='text/javascript' src='https://public.tableau.com/javascripts/api/viz_v1.js'></script><div class='tableauPlaceholder' style='width: 554px; height: 449px;'><noscript><a href='#'><img alt='Dashboard 2 ' src='https://public.tableau.com/static/images/co/countries_dynamicsUPD/Dashboard2/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' width='554' height='449' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='site_root' value='' /><param name='name' value='countries_dynamicsUPD/Dashboard2' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/co/countries_dynamicsUPD/Dashboard2/1.png' /> <param name='animate_transition' value='yes' /><par |
NewerOlder