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
// TODO Характеристики объекта. Линия домов – поле с возможностью выбора значений выпадающего списка | |
// TODO Дополнить типы ошибок | |
/* | |
enum - передаются в виде строки ("INTERNAL" для ErrorType::INTERNAL) | |
type - передаются в виде json | |
например для {user User, error Error} может быть передано: | |
{ | |
"user" : { | |
type : "EXPERT" |
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 { | |
listen *:80; | |
server_name baikal.srg-it.ru; | |
gzip on; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; |
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 { | |
listen *:80; | |
server_name baikal.srg-it.ru; | |
add_header Access-Control-Allow-Origin *; | |
if ($ssl_protocol = "") { | |
return 301 https://$host$request_uri; | |
} | |
access_log /var/log/nginx/baikal.srg-it.ru.access.log combined; |
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 { | |
listen *:80 http2; | |
server_name baikal.srg-it.ru; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript a | |
add_header Access-Control-Allow-Origin *; | |
if ($ssl_protocol = "") { | |
return 301 https://$host$request_uri; | |
} | |
index index.html; |
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
"use strict"; | |
var page = require('webpage').create(), | |
system = require('system'), | |
t, address, timeout, count, regexp, finish; | |
address = system.args[1]; | |
timeout = +(system.args[2] || 10000) | |
count = system.args[3] || 1 | |
regexp = new RegExp(system.args[4] || '.*', 'g') | |
finish = new Date().getTime()+ timeout; |
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
// Get all info about world metro stations | |
// cityID, lineID, stationID - all unique IDs in the world, no stations with the same id in different cities | |
{ | |
cityByID: { | |
2334 : { | |
text: 'Москва', | |
ID : 2334, | |
}, | |
2335 : { | |
text: 'Питер', |
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
filterOffers: { // запрос | |
filter: { | |
price: { | |
from: 10, | |
to: 5000, | |
}, | |
realtyType: ['office'], | |
// ...остальные поля которые уже есть | |
limit: 10, // вернуть первые 10 объектов |
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 { | |
listen *:80; | |
server_name test.srg-it.ru; | |
rewrite ^/?$ /ExpressSite/; | |
if ($ssl_protocol = "") { | |
return 301 https://$host$request_uri; | |
} | |
index index.html index.htm index.php; |
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
import TaskStore from './TaskStore' | |
function TaskStoreSaveErrors (data) { | |
let task = TaskStore(data) | |
return task.saveErrors | |
} | |
// task.saveErrors Example | |
// [ |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE") | |
classpath('com.bmuschko:gradle-cargo-plugin:2.0.3') | |
classpath('org.flywaydb:flyway-core:4.0') | |
} | |
} |
OlderNewer