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
/* | |
* Загружает файл на сервер | |
*/ | |
var requestQueue = [], | |
sendingRequest = false; | |
window.attachRequestToQueue = (queue) => { | |
requestQueue.push(queue); | |
doRequestQueue(); |
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
/** | |
* Бот для csgo.life | |
*/ | |
console.log('Запуск бота...'); | |
// var io = io(config.host); | |
var io = SOCKET; | |
const TYPE_HELLO = "hello"; |
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
<template> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
Загрузить фотографию | |
</div> | |
<div class="panel-body" v-notifications> | |
<form :action="source" @submit.prevent="store" role="form"> | |
<div v-if="photo" class="form-group"> |
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
<?php | |
function join_array(array $array, $divider = '.') { | |
$iterator = new RecursiveArrayIterator($array); | |
$new_array = []; | |
$recursive = function (RecursiveArrayIterator $iterator, $parent = null) use (&$recursive, &$new_array, $divider) { | |
while ($iterator->valid()) { | |
$path = !is_null($parent) ? $parent . $divider . $iterator->key() : $iterator->key(); | |
if ($iterator->hasChildren()) { |
NewerOlder