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
<!--You can use for any purpose, think it is MIT license or no license--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>HTML for styling</title> | |
<!--add your css here--> | |
</head> | |
<body> |
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
/** | |
* Encryption class for encrypt/decrypt that works between programming languages. | |
* | |
* @author Vee Winch. | |
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference. | |
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here. | |
*/ | |
class Encryption { |
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"> | |
<title>XHR upload large file with slice</title> | |
<style> | |
#debug { | |
border: 3px dashed #ccc; | |
margin: 10px 0; | |
padding: 10px; |
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
<?php | |
/** | |
* PHP `strftime()` format to `IntlDateFormatter()` pattern converter. | |
* | |
* PHP `strftime()` is deprecated since v 8.1. They recommended to use `IntlDateFormatter()` instead. | |
* However `IntlDateFormatter()` pattern does not fully supported all format that `strftime()` does. | |
* | |
* Run this file to get the result of most close pattern to `strftime()` based on Thai locale. | |
* | |
* @license MIT |
OlderNewer