Skip to content

Instantly share code, notes, and snippets.

Meily Chhon chhonmeily

Block or report user

Report or block chhonmeily

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
@chhonmeily
chhonmeily / README-Template.md
Created Jan 24, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@chhonmeily
chhonmeily / xmlToJson.js
Created Jun 7, 2018 — forked from demircancelebi/xmlToJson.js
Function to convert XML to JSON
View xmlToJson.js
// Changes XML to JSON
// Modified version from here: http://davidwalsh.name/convert-xml-json
xmlToJson(xml) {
// Create the return object
let obj = {};
if (xml.nodeType === 1) { // element
// do attributes
if (xml.attributes.length > 0) {
obj['@attributes'] = {};
@chhonmeily
chhonmeily / functions.php
Created Nov 20, 2015
Twitter Bootstrap Walker for WordPress Menu with some simple mega-menu support
View functions.php
/**
* Bootstrap Walker for Wordpress Navigation Menu
*
* Extends WordPress walker class to add support for Twitter Bootstrap navigation menu and JS dropdowns.
* Caveats and features:
* - Only top level elements with children will be turned into dropdowns
* - Can be used in a Bootstrap nav but needs some CSS styling to improve presentation
* - With extra CSS multiple columns can be shown in a dropdown (sort of a simple mega-menu)
*
* Multi column dropdowns (mega-menu) via CSS:
@chhonmeily
chhonmeily / functions.php
Created Oct 17, 2015 — forked from jameskoster/functions.php
WooCommerce - hide ratings on product loop
View functions.php
// Remove the product rating display on product loops
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
You can’t perform that action at this time.