Skip to content

Instantly share code, notes, and snippets.

View sebszocinski's full-sized avatar
💭
Always Busy™

Seb Szocinski sebszocinski

💭
Always Busy™
View GitHub Profile
@belohlavek
belohlavek / gh-pages-deploy.md
Last active August 21, 2022 19:33 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. Here's how to do it:

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore (or skip and force-add afterwards).

@andizzle
andizzle / gist:1798071
Created February 11, 2012 09:08
WooCommerce product dimensions/weight units normaliser
<?php
/**
* For WooCommerce 1.4.2 and above
* Dimensions/weight Units Normaliser
* Author Andy Zhang
* Company: Hypnotic Zoo
* Company Url: hypnoticzoo.com
*/