Skip to content

Instantly share code, notes, and snippets.

View ginsterbusch's full-sized avatar

Fabian Wolf ginsterbusch

View GitHub Profile
@devheedoo
devheedoo / detectIE.html
Last active October 14, 2017 13:14
Total IE Detection using conditional comments (<10) and JavsScript (10, 11)
<!-- Tested on 2016. 12. 5. -->
<body>
<!-- IE8 -->
<!--[IF IE 8]>
<p>isIE8</p>
<![endif]-->
<!-- IE9 -->
<!--[IF IE 9]>
<p>isIE9</p>
@HarishChaudhari
HarishChaudhari / country-code-to-currency-code-mapping.csv
Last active May 22, 2024 23:38
Country, Country Code, Currency code mapping in CSV format Taken from https://gist.github.com/304261 Contains 249 countries.
Country CountryCode Currency Code
New Zealand NZ New Zealand Dollars NZD
Cook Islands CK New Zealand Dollars NZD
Niue NU New Zealand Dollars NZD
Pitcairn PN New Zealand Dollars NZD
Tokelau TK New Zealand Dollars NZD
Australian AU Australian Dollars AUD
Christmas Island CX Australian Dollars AUD
Cocos (Keeling) Islands CC Australian Dollars AUD
Heard and Mc Donald Islands HM Australian Dollars AUD
@mikejolley
mikejolley / gist:1604009
Created January 13, 2012 00:31
WooCommerce - Add a special field to the checkout, order emails and user/order meta
/**
* Add the field to the checkout
**/
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field');
function my_custom_checkout_field( $checkout ) {
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>';
/**