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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<span class="asad"> | |
Сделано с <i class="fa fa-heart pulse"></i> в <a href="http://asad.tj" target="_blank">Asad Technologies</a> | |
</span> |
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
.col-ms-1, | |
.col-ms-2, | |
.col-ms-3, | |
.col-ms-4, | |
.col-ms-5, | |
.col-ms-6, | |
.col-ms-7, | |
.col-ms-8, | |
.col-ms-9, | |
.col-ms-10, |
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 dec_enc($action, $string) { | |
$output = false; | |
$encrypt_method = "AES-256-CBC"; | |
$secret_key = 'This is my secret key'; | |
$secret_iv = 'This is my secret iv'; | |
// hash | |
$key = hash('sha256', $secret_key); |
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
#-----------------------------------------------# | |
# ������ ����� ������������ ����� | |
#-----------------------------------------------# | |
server { | |
listen %ip%:%httpport%; | |
listen %ip%:%httpsport% ssl; | |
server_name %host% %aliases%; | |
root "%hostdir%/web"; | |
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 | |
$dbh = new \PDO('oci:dbname=' . "(DESCRIPTION =(ADDRESS = (PROTOCOL= TCP)(Host= host)(Port= port))(CONNECT_DATA = (SID = host)))" . ';charset=UTF8', $db_user, $db_psw); | |
$stmt = $dbh->prepare('Select * from user.tbl_api_beeline where PASSPORT is NOT NULL and ROWNUM <= 10000'); | |
$stmt->execute(); | |
$rows = $result = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
$data = array_chunk($rows, 1000); | |
/*echo "<pre>"; | |
var_dump($data); |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Mkhusaynov | |
* Date: 10/26/2018 | |
* Time: 10:56 AM | |
*/ | |
namespace app\commands; | |
use yii\console\Controller; |
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 | |
/* @var $this yii\web\View */ | |
/* @var $model app\controllers\SiteController */ | |
/* @var $spend app\controllers\SiteController */ | |
use app\components\Api; | |
use app\components\UsefulStuff; | |
$this->title = 'Главная страница'; | |
$getSpending = $model['spend']; | |
$beeUsage = 0; $otherUsage = 0; $mbUsage = 0; $otherSms = 0; | |
if($getSpending['status'] == 200){ |
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 | |
namespace App; | |
Class Download{ | |
private function downloadFile($title, $link, $saveLink, $folderName, $i) | |
{ | |
ob_start(); | |
$nameOld = $link . $title . $i .'.mp4'; |
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 | |
namespace App; | |
Class Download{ | |
private function downloadFile($title, $link, $saveLink, $folderName, $i) | |
{ | |
ob_start(); | |
$nameOld = $link . $title . $i .'.mp4'; |
OlderNewer