This file contains 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 (!is_file('filtered-savefile.php')) { | |
die('Unable to get filtered data, please run save-file.php first.'); | |
} | |
require 'filtered-savefile.php'; | |
// https://steamdb.info/app/816340/history/ |
This file contains 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 printDebug($var) | |
{ | |
echo '<pre>' . print_r($var, true) . '</pre>' . PHP_EOL; | |
} | |
/** |
This file contains 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 getTimezones(): array | |
{ | |
$timezones = \DateTimeZone::listIdentifiers(); | |
$options = []; | |
$lastRegion = ''; | |
if (is_array($timezones)) { | |
foreach ($timezones as $key => $timezone) { | |
$DateTimeZone = new \DateTimeZone($timezone); |
This file contains 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 '<meta charset="utf-8">' . PHP_EOL; | |
/*for ($i = 0; $i <= 255; $i++) { | |
$string = chr($i); | |
echo $i . ' => '; | |
echo iconv('tis-620', 'utf-8//IGNORE', $string); |
This file contains 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
<!--demo1-max-concurrent-wait-all.html--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>XHR multi concurrent connection</title> | |
<style> | |
#debug { | |
border: 3px dashed #ccc; | |
margin: 10px 0; |
This file contains 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"> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div class="rundiz-expandcollapse-list"> | |
<ul> | |
<li> |
This file contains 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
/** | |
* Antibot JS class. | |
*/ | |
class Antibot { | |
/** | |
* Setup honeypot form group. |
This file contains 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('str_contains')) { | |
/** | |
* Determine if a string contains a given substring | |
* | |
* @link https://www.php.net/manual/en/function.str-contains.php PHP `str_contains` original document. | |
* @param string $haystack The string to search in. | |
* @param string $needle The substring to search for in the `haystack`. | |
* @return bool Returns `true` if `needle` is in `haystack`, `false` otherwise. |
This file contains 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 | |
// Icons that was renamed in Font Awesome 6. 👎👎👎👎👎 | |
// https://fontawesome.com/docs/web/setup/upgrade/whats-changed#icons-renamed-in-version-6 | |
// The array format is [old name] => new name. | |
// The first array set is without `fa-` prefix. | |
$renamed = array ( | |
'ad' => 'rectangle-ad', | |
'adjust' => 'circle-half-stroke', | |
'air-freshener' => 'spray-can-sparkles', |
This file contains 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
/** | |
* YouTube URL. | |
* | |
* @author Vee W. | |
*/ | |
class YouTubeURL { |
OlderNewer