Skip to content

Instantly share code, notes, and snippets.

vee w, ve3

  • Thailand
Block or report user

Report or block ve3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ve3
ve3 / timezone-selectbox.php
Last active Nov 17, 2019
Generate timezones list array
View timezone-selectbox.php
<?php
function getTimezones(): array
{
$timezones = \DateTimeZone::listIdentifiers();
$options = [];
$lastRegion = '';
if (is_array($timezones)) {
foreach ($timezones as $key => $timezone) {
$DateTimeZone = new \DateTimeZone($timezone);
@ve3
ve3 / functions.php
Last active Jul 14, 2019
Check password hash length for each algo.
View functions.php
<?php
function printDebug($var)
{
echo '<pre>' . print_r($var, true) . '</pre>' . PHP_EOL;
}
/**
@ve3
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
<?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/
@ve3
ve3 / Encryption.js
Last active Nov 12, 2019
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 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 {
@ve3
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>
<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>
@ve3
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>
<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.