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 | |
$list = []; | |
$err = ''; | |
$path = filter_input( INPUT_GET, 'path'); | |
if ( !$path ) | |
{ | |
$err = 'Path is empty'; |
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 | |
/** | |
* array_ksort_nested | |
* en:sorting an array by multiple arbitrary keys | |
* ru:сортировка массива по нескольким произвольным ключам | |
* | |
* @param array $array | |
* @param array $args key in $array => acs|desc | |
* @param bool $saveKeys whether or not to keep the original keys |
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 | |
function numStr($num) | |
{ | |
$m = [ | |
['ноль'], | |
['-','один','два','три','четыре','пять','шесть','семь','восемь','девять'], | |
['десять','одиннадцать','двенадцать','тринадцать','четырнадцать','пятнадцать','шестнадцать','семнадцать','восемнадцать','девятнадцать'], | |
['-','-','двадцать','тридцать','сорок','пятьдесят','шестьдесят','семьдесят','восемьдесят','девяносто'], | |
['-','сто','двести','триста','четыреста','пятьсот','шестьсот','семьсот','восемьсот','девятьсот'], | |
['-','одна','две'] |
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
ol { | |
counter-reset: list+N; /* here N = value at which to start numbering – 1 */ | |
} | |
ol > li { | |
position: relative; | |
list-style-type: none; | |
} | |
ol > li:before { | |
position: absolute; | |
content: counter(list); |
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
jQuery(document).ready(function($) | |
{ | |
var loc = window.location.hash.replace('#', ''); | |
history.pushState('', document.title, window.location.pathname); | |
if (loc != '' && $(loc) && $('.tm-grid-filtering')) { | |
$('.tm-grid-filtering').attr('data-uk-grid', $('.gridClass').data('uk-grid').replace('}', ', filter:\'' + loc + '\'}')); | |
} | |
}); |
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
function svgHref() { | |
var | |
uses = document.querySelectorAll('use'), | |
lhref = location.href.split("#")[0]; | |
for (var i = 0; i < uses.length; i++) { | |
var href = uses[i].getAttribute('xlink:href'); | |
if (href.indexOf('#') == 0) { | |
uses[i].setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', lhref + href); | |
} |
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
/* | |
num number | |
thSeparator thousands separator | |
floatSeparator decimal separator | |
floatFixed fixed number of digits after the decimal point | |
*/ | |
function numberFormat(num, thSeparator, floatSeparator, floatFixed) | |
{ | |
var n; | |
if (!thSeparator) { thSeparator = ''; } |
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 | |
/* | |
* Collector of all UIkit3 variables into one file | |
* PHP 7.1+ !!! | |
* version 1.1.3 | |
*/ | |
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 1 ); |
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 | |
use Joomla\CMS\Language\Text; | |
use Joomla\CMS\HTML\HTMLHelper; | |
function getDateAlt($date, $format) | |
{ | |
$months = array( | |
Text::_('JANUARY') => 'Январь', | |
Text::_('FEBRUARY') => 'Февраль', |
NewerOlder