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
/// Merges maps or|and lists (optional). | |
/// | |
/// @param {map | list} $map1 The first map | |
/// @param {map | list} $map2 The second map | |
/// @param {bool} $merge-lists Allow merge lists | |
/// @return {map | null} The new map or list or null at error | |
@function merge-maps($map1, $map2, $merge-lists: false) { | |
@if (type-of($map1) == map or (type-of($map1) == list and length($map1) == 0)) and (type-of($map2) == map or (type-of($map2) == list and length($map2) == 0)) { | |
$result: $map1; | |
@each $key, $value in $map2 { |
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 YandexInvest | |
// @namespace YandexInvest | |
// @version 1.1.0 | |
// @description Extend history pages on https://invest.yandex.ru | |
// @author info@ensostudio.ru | |
// @include https://invest.yandex.ru/*/history/ | |
// @require https://code.jquery.com/jquery-3.4.1.slim.min.js | |
// @grant unsafeWindow | |
// @run-at document-end |
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
<?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 | |
namespace yii\helpers; | |
use Closure; | |
use ReflectionFunction; | |
use Throwable; | |
use Traversable; | |
use yii\base\Arrayable; |
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\core; | |
use ArrayAccess; | |
use Closure; | |
use Countable; | |
use Iterator; | |
use IteratorAggregate; | |
use yii\base\ArrayAccessTrait; |
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 | |
/** | |
* Stream wrapper `glob://` to use rich syntax in `GlobIterator`. | |
*/ | |
class GlobStreamWrapper | |
{ | |
/** | |
* @var string | |
*/ |
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
<?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; |