{
client: 'pg',
connection: {
host: process.env.DB_HOST,
port: process.env.DB_PORT,
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
proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off; | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
server_name example.com; | |
location /api/ { | |
# Rate Limiting | |
limit_req zone=reqlimit burst=20; # Max burst of request |
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> | |
<meta charset="utf-8"> | |
<!-- Обратите внимание, что клиент тут импортируется из ветки c2 репозитория centrifuge-js --> | |
<script type="text/javascript" src="https://rawgit.com/centrifugal/centrifuge-js/c2/dist/centrifuge.min.js"></script> | |
</head> | |
<body> | |
<input type="text" id="input" /> | |
<script type="text/javascript"> |
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
Задача: | |
Используя открытый API (https://dog.ceo/dog-api/) написать небольшое web-приложение на стэке React 16.3.x + Redux + React-Router. | |
Приложение должно иметь более чем один роут: список собак, страница конкретной собаки. | |
Сборка должна производиться с помощью webpack версии 4.x.x. | |
Покрытие тестами (хотя бы одного компонента) с помощью Jest | |
Обязательное и обоснованное использование EcmaScript 6+ фич (babel-present-env). | |
Код должен быть отформатирован по eslint airbnb (https://www.npmjs.com/package/eslint-config-airbnb) | |
Дизайн и структура файлов/папок проекта приложения остаётся на совесть выполняющего данное тестовое задание. |
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
Global : | |
- Only optimize when you need to! Pixi can handle a fair amount of content off the bat. | |
- Be mindful of the complexity of your scene. The more objects you add the slower things will end up. | |
- Order can help, for example sprite / graphic / sprite / graphic is slower than sprite / sprite / graphic / graphic | |
- Some older mobile devices run things a little slower. passing in the option 'legacy:true' to the renderer can help with performance | |
- Culling, is disabled by default as its often better to do this at an application level. If you are GPU it will improve performance, if you are CPU bound - it will degrade performance | |
Sprites: | |
- Use spritesheets where possible to minimize total textures | |
- Sprites can be batched with up to 16 different textures (dependent on hardware) |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
NewerOlder