Skip to content

Instantly share code, notes, and snippets.


vee w, ve3

  • Thailand
View GitHub Profile
ve3 / thai-characters.php
Last active Aug 13, 2020
PHP: list Thai characters in array. แสดงอักขระภาษาไทยเป็น array.
View thai-characters.php
echo '<meta charset="utf-8">' . PHP_EOL;
/*for ($i = 0; $i <= 255; $i++) {
$string = chr($i);
echo $i . ' =&gt; ';
echo iconv('tis-620', 'utf-8//IGNORE', $string);
ve3 / convert.php
Last active Aug 16, 2020
View convert.php
* Convert or rename the file to matched the list on the web page.
* Before getting start.
* Require PHP 7.1 or newer.
* Run best on Windows but cannot sure for other OS.
* Getting start.
* 1. Copy the HTML from web page that contains table list of audio names.
ve3 / timezone-selectbox.php
Last active Nov 17, 2019
Generate timezones list array
View timezone-selectbox.php
function getTimezones(): array
$timezones = \DateTimeZone::listIdentifiers();
$options = [];
$lastRegion = '';
if (is_array($timezones)) {
foreach ($timezones as $key => $timezone) {
$DateTimeZone = new \DateTimeZone($timezone);
ve3 / functions.php
Last active Jul 14, 2019
Check password hash length for each algo.
View functions.php
function printDebug($var)
echo '<pre>' . print_r($var, true) . '</pre>' . PHP_EOL;
ve3 / data-from-versioncontrol-steamdb.php
Last active Apr 26, 2019
Kingdom Rush Origins format save data to readable achievements.
View data-from-versioncontrol-steamdb.php
if (!is_file('filtered-savefile.php')) {
die('Unable to get filtered data, please run save-file.php first.');
require 'filtered-savefile.php';
ve3 / Encryption.js
Last active Oct 19, 2020
Encrypt and decrypt between programming languages (PHP & JavaScript).
View Encryption.js
* Encryption class for encrypt/decrypt that works between programming languages.
* @author Vee Winch.
* @link Reference.
* @link crypto-js.js can be download from here.
class Encryption {
ve3 / typography-and-form.html
Last active Jul 30, 2019
Most of HTML elements for styling with your CSS.
View typography-and-form.html
<!--You can use for any purpose, think it is MIT license or no license-->
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML for styling</title>
<!--add your css here-->
ve3 / bootstrap4-collapse-card.html
Last active Nov 23, 2017
Bootstrap 4 - Collapse "card" style.
View bootstrap4-collapse-card.html
<div id="accordion2" role="tablist" aria-multiselectable="true">
<div class="panel card">
<div class="panel-heading card-header" role="tab" id="accordion2-heading1">
<a href="#accordion2-collapse1" data-toggle="collapse" data-parent="#accordion2" aria-expanded="true" aria-controls="accordion2-collapse1">Collapsible Group Item #1</a>
<div id="accordion2-collapse1" class="card-block panel-collapse collapse in" role="tabpanel" aria-labelledby="accordion2-heading1">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table,
You can’t perform that action at this time.