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 Habr Visor | |
| // @match https://habr.com/* | |
| // @grant GM_addStyle | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
| // @updateURL https://gist.github.com/francyfox/dbf213234c75bb251974edbee9d31420.js |
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
| /** | |
| * Задает одинаковую высоту элементам в строке | |
| * @param {String} subElementsClass - (*) Класс элемента, которому будут задавать высоту | |
| * @param {String} selector - (*) querySelectorAll elements, родитель subElementsClass | |
| * @param {String} titleSelector - тоже самое, но для надписей сбоку | |
| * @param {String} titleSubElementsClass | |
| */ | |
| export default function matchHeight(selector, |
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 | |
| $product = | |
| array( | |
| array( | |
| 'offer' => array( | |
| 'id' => 385642 | |
| ) | |
| ) | |
| ); |
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 | |
| global $argv; | |
| class Factorial | |
| { | |
| public function __construct() {} | |
| public function getFactorial(int $number): int { | |
| if ($number <= 1) return 1; | |
| return $number * $this->getFactorial($number - 1); // maximal int size 2,147,483,647 | |
| } |
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 Tempest | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://cp21.megagroup.ru/* | |
| // @grant none | |
| // ==/UserScript== |