Skip to content

Instantly share code, notes, and snippets.

View francyfox's full-sized avatar
:octocat:
OctoCat :push: :push: :push:

Danil Golota francyfox

:octocat:
OctoCat :push: :push: :push:
View GitHub Profile
@francyfox
francyfox / habr-visor.js
Last active January 31, 2026 11:17
Скрывает на хабре статьи по хабам
// ==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
/**
* Задает одинаковую высоту элементам в строке
* @param {String} subElementsClass - (*) Класс элемента, которому будут задавать высоту
* @param {String} selector - (*) querySelectorAll elements, родитель subElementsClass
* @param {String} titleSelector - тоже самое, но для надписей сбоку
* @param {String} titleSubElementsClass
*/
export default function matchHeight(selector,
<?php
$product =
array(
array(
'offer' => array(
'id' => 385642
)
)
);
@francyfox
francyfox / faq.php
Created August 27, 2021 12:06
test php
<?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
}
// ==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==