Skip to content

Instantly share code, notes, and snippets.

Tin Ho Chu tinhochu

Block or report user

Report or block tinhochu

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
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>
<div class="main-content-wrapper">
<div class="facetwp-template">
<?php
@tinhochu
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
<?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
You can’t perform that action at this time.