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 | |
/** | |
* @link https://kf7.github.io | |
* @copyright (c) 2006-2020 Kohana team | |
* @license https://kf7.github.io/license/ BSD-3-Clause | |
*/ | |
declare(strict_types=1); | |
namespace KF7\System\Http\Routing; |
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 | |
if (! function_exists('is_iterable')) { | |
/** | |
* Verify that the contents of a variable is an iterable value. | |
* | |
* @link https://php.net/manual/en/function.is_iterable.php | |
* @param mixed $var Variable to test | |
* @return bool | |
*/ |
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 Enso; | |
use SimpleXMLElement; | |
/** | |
* Converts array to XML object. | |
* Note: attribute keys must prefix '@'. | |
* |
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
// ==UserScript== | |
// @name litresCoupons | |
// @namespace litres.ru | |
// @version 0.1 | |
// @description Add coupons | |
// @author info@ensostudio.ru | |
// @include https://www.litres.ru/pages/put_money_on_account/* | |
// @include https://litres.ru/pages/put_money_on_account/* | |
// @require https://code.jquery.com/jquery-3.4.1.min.js | |
// @grant unsafeWindow |
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 | |
/** | |
* Returns language list parsed from site "iana.org" and grouped by type ('language', 'variant', 'extlang' and etc.). | |
* | |
* @param int $last_update timestamp (optional) | |
* @param string $url source URL (optional) | |
* @return array|null return NULL when list not updated | |
*/ | |
function iana_languages(int $last_update = null, string $url = null): ?array | |
{ |
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 | |
if (!\function_exists('getallheaders')) { | |
/** | |
* Returns HTTP headers for the server request. | |
* | |
* @return string[] The HTTP headers | |
*/ | |
function getallheaders() | |
{ |
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 | |
/** | |
* CRUD controller. | |
* | |
* @link https://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD | |
* @link https://koseven.dev/documentation/kohana/tutorials/basic-controller Controller_Base | |
*/ | |
class Controller_CRUD extends Controller_Base | |
{ | |
/** |
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 EnsoStudio; | |
use Reflector; | |
use Reflection; | |
use ReflectionClass; | |
use ReflectionType; | |
use ReflectionNamedType; | |
use ReflectionFunctionAbstract; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS template</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> | |
</head> | |
<body> | |
<main id="main"></main> |