Skip to content

Instantly share code, notes, and snippets.

Tin Ho Chu tinhochu

View GitHub Profile
View gist:1a2df68946f5e2a9889e3c7eaa8a84e2
// 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');
View gist:fe0ac1d1a76080f86d72b6586ba0f9bc
<div class="location-wrapper">
<div class="facets-wrapper">
<?php dynamic_sidebar('location-facet-widget'); ?>
<?php echo facetwp_display( 'facet', 'my_search' ); ?>
<div class="main-content-wrapper">
<div class="facetwp-template">
tinhochu / kia_convert_country_code.php
Created Dec 12, 2016 — forked from helgatheviking/kia_convert_country_code.php
Converts the WooCommerce country codes to 3-letter ISO codes
View kia_convert_country_code.php
* Converts the WooCommerce country codes to 3-letter ISO codes
* @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
You can’t perform that action at this time.