Simple and safe random getters to copy-paste
string randomBytes( int $length )
int randomInt ( int $min , int $max )
string randomUuid ( void )
<?php | |
/** | |
* This file is part of the Tarantool Client package. | |
* | |
* (c) Eugene Leonovich <gen.work@gmail.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
# Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86_64) | |
# (из коробки) OpenSSL 1.1.0g 2 Nov 2017 | |
# (из коробки) curl 7.58.0 (x86_64-pc-linux-gnu) | |
# PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) | |
# Компилим GOST-engine | |
sudo apt install cmake libssl-dev | |
git clone --branch=openssl_1_1_0 https://github.com/gost-engine/engine.git gost-engine/engine | |
cd gost-engine/engine | |
cmake . |
How to build with actual ICU version (tested on debian 8.2):
wget http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz tar xvzf icu4c-56_1-src.tgz cd icu/source ./configure --prefix=/opt/icu4c-php && make && make install
Add to php build config --with-icu-dir=/opt/icu4c-php
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
Progress = new function() { | |
this.progressStartTimer = null; // ИД таймера старта прогресс-бара | |
this.time = 800; // Через сколько милисекунд отобразить прогресс-бар | |
this.clear = function() { | |
if (this.progressStartTimer != null) { | |
clearTimeout(this.progressStartTimer); | |
} | |
}; | |
this.start = function() { | |
this.clear(); |
<?php | |
/** | |
* Класс для генрации Docx | |
* User: Алексей Дмитриев | |
* Date: 10.07.14 | |
* Time: 17:52 | |
*/ | |
class FileConverterDOC extends FileConverter { |
<?php | |
namespace console\controllers; | |
use \Yii; | |
class ReverseController extends \yii\console\Controller | |
{ | |
public function actionMigrate() { | |
// $schema = $args[0]; | |
$tables = Yii::$app->db->schema->getTableSchemas(); |
<?php | |
namespace common\models\db; | |
class AppActiveQuery extends \yii\db\ActiveQuery | |
{ | |
private $cacheDuration = null; | |
private $functionName = ''; | |
private $q = null; | |
/** |
/* | |
https://github.com/brianreavis/selectize.js/issues/470 | |
Selectize doesn't display anything to let the user know there are no results. | |
This is a temporary patch to display a no results option when there are no | |
options to select for the user. | |
*/ | |
Selectize.define( 'no_results', function( options ) { | |
var self = this; |