№ | Услуга | Чел/час | Комментарий для обывателей |
---|---|---|---|
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
Вы можете использовать node.js приложения через SSH-консоль. Для этого необходимо выполнить следующие действия: | |
На сайте Node.js в разделе Downloads https://nodejs.org/en/download/ выбрать"Linux Binaries" и скопировать ссылку на x64 версию. Пример ссылки на дистрибутив: https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.gz. Если ссылка заканчивается расширением xz, необходимо заменить его на gz. | |
Скачать и распаковать дистрибутив: | |
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.gz | |
tar xf node-v6.3.1-linux-x64.tar.gz |
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
// slow_scroll | |
$('a[href*="#"]').click(function() { | |
$page.animate({ | |
scrollTop: $($.attr(this, 'href')).offset().top | |
}, 1000); | |
return false; | |
}); |
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): |
NewerOlder