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
{ | |
"data": [ | |
{ | |
"id": 2, | |
"legacy_id": 11, | |
"country_id": 41, | |
"logo_path": "https:\/\/cdn.sportmonks.com\/images\/soccer\/leagues\/2.png", | |
"name": "Champions League", | |
"is_cup": true, | |
"current_season_id": 12950, |
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
{ | |
"lat": "-85.6", | |
"lng: "130.2111111", | |
"speed": 15.1, | |
"bearing": 125, | |
"altitude": 118, | |
"battery": 98, | |
"sattelite": 5 | |
} |
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
function drawNestedSetsTree(data, node) { | |
if (!data || !data.length) { | |
return false; | |
} | |
const ul = document.createElement('ul'); | |
data.sort((a, b) => (a.left - b.left)); | |
data.forEach((item) => { | |
if (!item.title) { |
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 | |
/** | |
* i changed class name as mPDO because, give me an error | |
* | |
* " Fatal error: Cannot redeclare class pdo. If this code worked without the Zend Optimizer+, | |
* please set zend_optimizerplus.dups_fix=1 in your php.ini " | |
*/ | |
class Mpdo | |
{ |
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 | |
/** | |
* Итератор возвращает набор значений начального итератора | |
*/ | |
class PartialIterator implements \Iterator | |
{ | |
/** | |
* @var int Текущая позиция итератора | |
*/ |
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 | |
/* Main image part */ | |
$main = new Imagick(DIR_IMAGE . $old_image); | |
$main->setImageMatte(true); | |
$main->cropimage($main->getImageWidth() * 0.9, $main->getImageHeight(), $main->getImageWidth() * 0.1, 0); | |
$main->setimagebackgroundcolor("#ffffff"); | |
$main->setImageVirtualPixelMethod(imagick::VIRTUALPIXELMETHOD_BACKGROUND); | |
$pointsMain = array( | |
0, 0, 0, 0, |
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 | |
final class sms_sending extends SmsGate { | |
private $url = 'http://lcab.sms-sending.ru/API/XML/send.php'; | |
private function GetPageByUrl($headers, $post_body) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $this->url); // урл страницы | |
curl_setopt($ch, CURLOPT_FAILONERROR, 1); |