Skip to content

Instantly share code, notes, and snippets.

View christophherr's full-sized avatar

Christoph Herr christophherr

View GitHub Profile
@christophherr
christophherr / WPDevelopersClub Code Challenge May 19,2015
Last active August 29, 2015 14:21
WPDevelopersClub Code Challenge May 19,2015
//1.
$args = func_get_args();
//2.
$numargs = count($args);
//3.
//This is this weeks brain teaser.
@christophherr
christophherr / WordPress Developers Club Challenge - Object Buffering
Created May 14, 2015 22:29
WordPress Developers Club Challenge - Object Buffering
//1.
//Hello World11.
//ob_flush sends the contents of the buffer.
//The first content is the echo "Hello World" and the second content is the string length (strlen) of "Hello World".
//Hello World echoes no matter what unless the buffer is "cleaned/destroyed" with ob_clean or ob_end_clean...
//2.
//Render out "Hello World"
@christophherr
christophherr / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@christophherr
christophherr / gist:f529c348b6087a291ae6
Created April 1, 2015 06:42
Sublime test preferences
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"default_line_ending": "unix",
"enable_telemetry": false,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".git",
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
/*
Modify the color styles of the WooCommerce Bookings datepicker calendar.
Add any/all of these styles to your theme's custom CSS, but be sure to change
the color hex codes to your choice. They're all black here.
*/
/* Month header background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
background-color: #000000;
}