№ | Услуга | Чел/час | Комментарий для обывателей |
---|---|---|---|
1 | Аутентификация и авторизация | 6 | Создание системы, которая позволяет пользователям входить в систему и защищает их данные. |
2 | Адаптивный (Responsive) дизайн | 5 | Разработка дизайна, который автоматически подстраивается под разные устройства, такие как смартфоны, планшеты и компьютеры. |
3 | Кеширование данных | 4 | Создание механизма для временного хранения данных, чтобы ускорить загрузку веб-страниц. |
4 | Работа с медиа-файлами (загрузка, обработка) | 6 | Разработка функционала для загрузки и обработки изображений, видео и других медиа-файлов на веб-сайте. |
5 | Интеграция с социальны |
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
def threaded_async(f): | |
def wrapper(*args, **kwargs): | |
thr = Thread(target=f, args=args, kwargs=kwargs) | |
thr.start() | |
return wrapper |
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
class LogEntryDetailsContractActivationSerialiser(serializers.ModelSerializer): | |
number = serializers.CharField(source='number.number') | |
name = serializers.CharField(source='contract.name') | |
class Meta: | |
model = UserContract | |
fields = ( | |
'number', | |
'name' | |
) |
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
from rest_framework import pagination | |
from rest_framework.response import Response | |
class NewsPageNumberPagination(pagination.PageNumberPagination): | |
page_size_query_param = 'count' | |
max_page_size = 100 | |
def get_paginated_response(self, data): |
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
Начать - https://www.youtube.com/watch?v=5LuHkG3fiFY | |
Продолжить - http://nnmclub.to/forum/viewtopic.php?t=1218270 | |
Закрепить - https://docs.docker.com/ |
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
--- | |
- name: Run docker.ubuntu | |
hosts: server | |
remote_user: root | |
roles: | |
- angstwad.docker_ubuntu |
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
sudo lsof -t -i tcp:8000 | xargs kill -9 |
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
# логин должен начинаться с латинской буквы; | |
# состоять из латинских букв, цифр, точки и минуса, | |
# но заканчиваться только латинской буквой или цифрой; | |
# минимальная длина логина — один символ, максимальная — 20. | |
def validater_one(data: str) -> bool: | |
if len(data) <= 20 and data[0].isalpha() and (data[-1].isalpha() or data[-1].isdigit()): | |
result = [] | |
for i in set(data): |
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
Code Example Meaning | |
%a Mon # Weekday as locale’s abbreviated name. | |
%A Monday # Weekday as locale’s full name. | |
%w 1 # Weekday as a decimal number, where 0 is Sunday and 6 is Saturday. | |
%d 30 # Day of the month as a zero-padded decimal number. | |
%-d 30 # Day of the month as a decimal number. (Platform specific) | |
%b Sep # Month as locale’s abbreviated name. | |
%B September # Month as locale’s full name. | |
%m 9 # Month as a zero-padded decimal number. |
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
sudo rm -rf /Library/Frameworks/Python.framework | |
cd /usr/local/bin | |
ls -l . | grep '../Library/Frameworks/Python.framework' | awk '{print $9}' | xargs sudo rm | |
sudo rm -rf "/Applications/Python x.y" | |
# install | |
tar xvf Python-3.6.3.tgz | |
cd Python-3.6.3 | |
./configure |
NewerOlder