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
// ==UserScript== | |
// @name YandexInvest | |
// @namespace YandexInvest | |
// @version 1.1.0 | |
// @description Extend history pages on https://invest.yandex.ru | |
// @author [email protected] | |
// @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 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 | |
namespace EnsoStudio\PhpTokenizer; | |
use ArrayIterator; | |
use FilterIterator; | |
use SeekableIterator; | |
use OutOfBoundsException; | |
use PhpToken; |
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
/// 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 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
<!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> |
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 | |
namespace EnsoStudio; | |
use Reflector; | |
use Reflection; | |
use ReflectionClass; | |
use ReflectionType; | |
use ReflectionNamedType; | |
use ReflectionFunctionAbstract; |
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 | |
/** | |
* 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 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 | |
if (!\function_exists('getallheaders')) { | |
/** | |
* Returns HTTP headers for the server request. | |
* | |
* @return string[] The HTTP headers | |
*/ | |
function getallheaders() | |
{ |
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 | |
/** | |
* 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 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
// ==UserScript== | |
// @name litresCoupons | |
// @namespace litres.ru | |
// @version 0.1 | |
// @description Add coupons | |
// @author [email protected] | |
// @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 |