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 { takeEvery, put } from 'redux-saga/effects'; | |
| import * as R from 'ramda'; | |
| import { createReducer } from 'redux-create-reducer'; | |
| import {DADATA_ADDRESS_API_URL, DADATA_KEY} from "../../shared/const"; | |
| import request from "../../sagas/request"; | |
| export const FETCH_ADDRESSES = 'FETCH_ADDRESSES'; | |
| export const FETCH_ADDRESSES_SUCCESS = 'FETCH_ADDRESSES_SUCCESS'; | |
| export const FETCH_ADDRESSES_ERROR = 'FETCH_ADDRESSES_ERROR'; |
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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |
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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |
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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| send_timeout 1800; | |
| sendfile 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
| import React, {Component, PropTypes} from 'react'; | |
| class BadInputComponent extends Component { | |
| static propTypes = { | |
| text = PropTypes.string.isRequired, | |
| updateText = PropTypes.func.isRequired, | |
| }; | |
| render() { | |
| return ( |
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
| upstream http_backend { | |
| # INNER SERVER LOCAL IP:PORT | |
| server 127.0.0.1:1337; | |
| } | |
| server { | |
| listen 80; | |
| server_name #YOUR SERVER IP OR DOMAIN; | |
| # STATIC FRONTEND FILES | |
| location / { |
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
| <? | |
| // файл /local/php_interface/init.php | |
| // регистрируем обработчик | |
| AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", Array("CIBlockHandler", "OnBeforeIBlockElementUpdateHandler")); | |
| AddEventHandler("iblock", "OnBeforeIBlockElementAdd", Array("CIBlockHandler", "OnAfterIBlockElementAddHandler")); | |
| /** | |
| * Класс обработчик событий добавления/изменения элементов инфоблока «Учреждения (только подведомственные министерству!!!)». | |
| * Разрешает запись выбранных полей только адимнистратору. | |
| * Class CIBlockHandler |
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
| # This is Git's per-user configuration file. | |
| [user] | |
| # Please adapt and uncomment the following lines: | |
| name = xamedow (Andrey Hamedov) | |
| email = xamedow@gmail.com | |
| [core] | |
| editor = subl | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow |
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 | |
| session_start(); | |
| require_once("../mod/mod_config.php"); | |
| $filter = new filter; | |
| if (isset($_POST['table'])) { | |
| // Friends remover. | |
| if ($_POST['table'] === 'friends') { | |
| $person_id = $filter->html_filter(@$_POST['person_id']); | |
| $friend_id = $filter->html_filter(@$_POST['friend_id']); |