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
<nav> | |
<ul class="pagination"> | |
<li <? if ($page == 1) echo 'class="disabled"' ?>> | |
<a href="<?= ($page == 1 ? '' : $page - 1) ?>" aria-label="Previous"><span aria-hidden="true">«</span></a> | |
</li> | |
<? | |
$links = 10; | |
$start = ($page - $links) > 0 ? $page - $links : 1; | |
$end = ($page + $links) < $totalPages ? $page + $links : $totalPages; |
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 progressBar($done, $total) | |
{ | |
$perc = floor(($done / $total) * 100); | |
$left = 100 - $perc; | |
fwrite(STDERR, sprintf("\033[0G\033[2K[%'#{$perc}s%-{$left}s] - $perc%% - $done/$total", "", "")); | |
} |
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 | |
echo cliColor::convert('test', 'red'), "\n"; | |
class cliColor { | |
static private $instance; | |
static private $font = [ | |
'black' => '0;30', |
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
CREATE PROCEDURE `tree_create`() MODIFIES SQL DATA | |
BEGIN | |
DECLARE currentId, currentParentId CHAR(36); | |
DECLARE currentLeft INT; | |
DECLARE startId INT DEFAULT 1; | |
SET max_heap_table_size = 1024 * 1024 * 512; | |
START TRANSACTION; |
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
||msftncsi.com^ | |
||*watson* | |
||*telemetry* | |
||w.tools^ | |
||windows.com^ | |
||*.sk^ | |
||trafficmanager.net^ | |
||cloudapp.net^ |