I hereby claim:
- I am CoenJacobs on github.
- I am coenjacobs (https://keybase.io/coenjacobs) on keybase.
- I have a public key whose fingerprint is 4925 71BD 1469 C165 B383 A62A 5D7F A24B B215 0324
To claim this, I am signing this object:
| #!/bin/bash | |
| vagrant up | |
| vagrant ssh << EOF | |
| # If directory doesn't exist, clone the repository in ~/.dotfiles | |
| if [ ! -d ~/.dotfiles ]; | |
| then | |
| git clone --recursive https://github.com/coenjacobs/dotfiles.git ~/.dotfiles | |
| fi |
| if ( $ip ) { | |
| $parts = array_map( 'intval', explode( '.', $ip ) ); | |
| if ( 127 === $parts[0] || 10 === $parts[0] | |
| || ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] ) | |
| || ( 192 === $parts[0] && 168 === $parts[1] ) | |
| ) { | |
| // If host appears local, reject unless specifically allowed. | |
| /** | |
| * Check if HTTP request is external or not. | |
| * |
| <?php | |
| add_filter( 'body_class' , 'ft_add_guest_body_class' ); | |
| /** | |
| * Adds a body class for guests. | |
| * | |
| * @author Remkus de Vries | |
| * @link http://remkusdevries.com/when-sharing-wordpress-related-code-snippets-i-can-haz-standards-please/ | |
| * @tested WordPress 3.2.1 | |
| * @param array $classes Existing body classes |
| jQuery( document ).ready(function( $ ) { | |
| var href = $("#nav a").attr("href"); | |
| var html = '<a href="'+ href +'">First login?</a> - '; | |
| $( "#nav" ).prepend( html ); | |
| } ); |
| <?php get_header(); ?> | |
| <div id="container"> | |
| <div id="content" role="main"> | |
| <h1 class="page-title">Recepten</h1> | |
| <?php get_template_part( 'loop', 'recept' ); ?> | |
| </div> |
| <?php | |
| /** | |
| * Updates Woo Framework in all WooThemes on a WP installation | |
| * | |
| * To use: | |
| * | |
| * - Get the latest copy of the framework | |
| * - Unzip to /wp-content/framework/ | |
| * - Visit wp-admin?cac_update_woo=1 as super admin |
| <?php | |
| /* | |
| Plugin Name: WC Remove Dutch Provinces | |
| Description: Removes the Dutch provinces from the WooCommerce country dropdown boxes, no need to show these. Will become superfluous once WooCommerce 2.0 is released. Important: Make sure you select 'Netherlands' as country again in WooCommerce settings. | |
| Author: Coen Jacobs | |
| Author URI: http://coenjacobs.me/ | |
| */ | |
| add_filter( 'woocommerce_states', 'cj_woocommerce_states' ); |
| <?php | |
| /* | |
| Plugin Name: WC Disable Shipping for Classes | |
| Description: Disables specific shipping methods if there are products with one or more specified shipping classes in the cart. | |
| Author: Coen Jacobs | |
| Author URI: http://coenjacobs.me | |
| Version: 1.0 | |
| */ |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /* | |
| Plugin Name: WooCommerce Show Dimensions On Archive | |
| Description: Display product dimensions on archive pages, right below the title of the product. | |
| Version: 1.0 | |
| Author: Coen Jacobs | |
| Author URI: http://coenjacobs.me | |
| */ |