This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AB : Alberta | |
BC : British Columbia | |
MB : Manitoba | |
NB : New Brunswick | |
NL : Newfoundland and Labrador | |
NT : Northwest Territories | |
NS : Nova Scotia | |
NU : Nunavut | |
ON : Ontario | |
PE : Prince Edward Island |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps we will take: | |
# 1. Change Local (Docker Machine) image type (this will take a bit) | |
# 2. Resize image | |
# 3. Resize partion | |
# | |
# Also see: https://docs.docker.com/articles/b2d_volume_resize/ | |
# IMPORTANT: Make sure Local is not running! | |
VM_NAME="pressmatic" | |
NEW_DISK_SIZE=50000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini_set('xdebug.var_display_max_depth', 5); | |
ini_set('xdebug.var_display_max_children', 256); | |
ini_set('xdebug.var_display_max_data', 1024); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Update after each step completion - probably executes too often for most use cases | |
add_action( 'gravityflow_step_complete', 'gravityflow_step_complete_post_publish', 10, 4 ); | |
function gravityflow_step_complete_post_publish( $step_id, $entry_id, $form_id, $status ) { | |
$entry = GFAPI::get_entry( $entry_id ); | |
$currentPost = get_post( rgar( $entry, 'post_id' ) ); | |
if("draft" == $currentPost->post_status) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Loop Vimeo Videos in Soliloquy | |
add_filter( 'soliloquy_vimeo_args', 'mdk_vimeo_sol_settings', 10, 3 ); | |
function mdk_vimeo_sol_settings( $args ) { | |
$loop = array( 'loop' => 1 ); | |
$args = array_merge( $args, $loop ); | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Responsive oEmbed for videos | |
add_filter( 'embed_oembed_html', 'resp_embed', 10, 3 ); | |
function resp_embed( $html ) { | |
return '<div class="oembed-container">' . $html . '</div>'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Additional Meta Boxes to Soliloquy Slides | |
add_action('soliloquy_before_image_meta_link', 'mdk_get_soliloquy_metaboxes', 10, 3); | |
function mdk_get_soliloquy_metaboxes($id, $data, $post_id) { | |
if (! empty( $data["mdkcustomfield"] )) { | |
$mdkcustomfield = esc_attr( $data["mdkcustomfield"] ); | |
} else { | |
$mdkcustomfield = ""; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Parse parameters in URL | |
function getURLParameter(sParam) | |
{ | |
var sPageURL = window.location.search.substring(1); | |
var sURLVariables = sPageURL.split('&'); | |
for (var i = 0; i < sURLVariables.length; i++) | |
{ | |
var sParameterName = sURLVariables[i].split('='); | |
if (sParameterName[0] == sParam) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MAXTIMINGS 85 | |
#define cli noInterrupts | |
#define sei interrupts | |
#define DHT11 11 | |
#define DHT22 22 | |
#define DHT21 21 | |
#define AM2301 21 |
NewerOlder