This file contains hidden or 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
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
This file contains hidden or 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
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
use epoll; | |
multi_accept on; | |
} |
This file contains hidden or 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
[program:something_uwsgi] | |
user=something | |
process_name=%(program_name)s | |
directory=/home/something/something.info | |
command=/usr/bin/uwsgi -y /home/something/something.info/app/uwsgi.yaml | |
stdout_logfile=/home/something/something.info/log/supervisord_uwsgi.log | |
stderr_logfile=/home/something/something.info/log/supervisord_uwsgi.error | |
autostart=true | |
autorestart=true | |
redirect_stderr=true |
This file contains hidden or 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
uwsgi: | |
plugins: python | |
# указываем socket, при помощи которого будет происходить | |
# взаимодействие между nginx и uwsgi | |
socket: %d/../tmp/%n.sock | |
chdir: %d../app/ | |
# здесь указываем путь к django-проекту | |
pythonpath: %d../app/ | |
# устанавливаем переменную окружения, которая хранит имя settings файла | |
env: DJANGO_SETTINGS_MODULE=settings |
This file contains hidden or 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
server { | |
access_log "/home/something/something.info/log/nginx-access.log"; | |
error_log "/home/something/something.info/log/nginx-error.log"; | |
listen 80; | |
server_name something.info www.something.info; | |
include drop.conf; | |
if ($host = 'www.something.info' ) { |
This file contains hidden or 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_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_redirect off; | |
port_in_redirect off; | |
proxy_connect_timeout 90; | |
proxy_send_timeout 90; | |
proxy_read_timeout 90; |
This file contains hidden or 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 wrap(func): | |
def wrapped_func(*args, **kwargs): | |
print('hello world') | |
return func(*args, **kwargs) | |
return wrapped_func | |
This file contains hidden or 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
[ | |
u'1-й Газетный пер.', | |
u'1-й Гороховский пер.', | |
u'1-й Громовой пер.', | |
u'1-й Кирпичный пер.', | |
u'1-й Кондукторский пер.', | |
u'1-й Курский пер.', | |
u'1-й Линейный пер.', | |
u'1-й Опытный пер.', | |
u'1-й Орловский пер.', |
This file contains hidden or 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
{ | |
"Алтайский край": { | |
"0": [ | |
[ | |
54.469437, | |
85.079468 | |
], | |
[ | |
54.195824, | |
85.44720500000001 |
This file contains hidden or 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
<?php | |
use yii\helpers\Html; | |
use yii\widgets\Menu; | |
use yii\widgets\Breadcrumbs; | |
/** | |
* @var $this \yii\base\View | |
* @var $content string | |
*/ | |
app\config\AppAsset::register($this); |