Skip to content

Instantly share code, notes, and snippets.

View tinhochu's full-sized avatar

Tin Ho Chu tinhochu

View GitHub Profile
##############################################################
# How to run local multi-node Kubernetes clusters using kind #
# https://youtu.be/C0v5gJSWuSo #
##############################################################
#########
# Setup #
#########
# Install kind (https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
// Dependencies
'use strict';
var gulp = require('gulp');
var path = require('path');
var livereload = require('gulp-livereload');
var sass = require('gulp-sass');
var maps = require('gulp-sourcemaps');
var cleanCSS = require('gulp-clean-css');
var postcss = require('gulp-postcss');
<div class="location-wrapper">
<div class="facets-wrapper">
<?php dynamic_sidebar('location-facet-widget'); ?>
<?php echo facetwp_display( 'facet', 'my_search' ); ?>
</div>
<div class="main-content-wrapper">
<div class="facetwp-template">
<?php
@tinhochu
tinhochu / kia_convert_country_code.php
Created December 12, 2016 18:30 — forked from helgatheviking/kia_convert_country_code.php
Converts the WooCommerce country codes to 3-letter ISO codes
<?php
/**
* Converts the WooCommerce country codes to 3-letter ISO codes
* https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
* @param string WooCommerce's 2 letter country code
* @return string ISO 3-letter country code
*/
function kia_convert_country_code( $country ) {
$countries = array(
'AF' => 'AFG', //Afghanistan