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
| <?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( |
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
| function Track(src, spriteLength, audioLead) { | |
| var track = this, | |
| audio = document.createElement('audio'); | |
| audio.src = src; | |
| audio.autobuffer = true; | |
| audio.load(); | |
| audio.muted = true; // makes no difference on iOS :( | |
| /* This is the magic. Since we can't preload, and loading requires a user's | |
| input. So we bind a touch event to the body, and fingers crossed, the |
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
| //addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
| (function(win, doc){ | |
| if(win.addEventListener)return; //No need to polyfill | |
| function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
| function addEvent(on, fn, self){ | |
| return (self = this).attachEvent('on' + on, function(e){ | |
| var e = e || win.event; | |
| e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
| e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = true} |
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
| <?php | |
| // app/start/global.php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Application Error Logger | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here we will configure the error logger setup for the application which |
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
| /*! | |
| * jQuery TextChange Plugin | |
| * http://www.zurb.com/playground/jquery-text-change-custom-event | |
| * | |
| * Copyright 2010, ZURB | |
| * Released under the MIT License | |
| */ | |
| (function ($) { | |
| $.event.special.textchange = { |
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
| <meta itemprop="name" content="[ TITLE ]" /> | |
| <meta itemprop="image" content="[ LISTING IMAGE ]" /> | |
| <meta itemprop="description" content="[ ARTICLE DESCRIPTION ]" /> | |
| <meta name="description" content="[ ARTICLE DESCRIPTION ]" /> | |
| <meta name="author" content="[ AUTHOR FULL NAME ]" /> | |
| <meta property="article:author" content="[ GOOGLE+ AUTHOR URL ]" /> | |
| <meta property="article:published_time" content="[ PUBLISHED TIMESTAMP ]" /> | |
| <meta property="article:section" content="[ CATEGORY ]" /> |
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
| package nl.stroep.games.components; | |
| import flambe.Component; | |
| import nape.space.Space; | |
| /** | |
| * @author Mark Knol [blog.stroep.nl] | |
| */ | |
| class NapeDebugView extends Component | |
| { | |
| private var _space:Space; |
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
| // Sensei - Add tags to Courses | |
| // Run this after "register_post_type( 'course'..." in "class-woothemes-sensei-posttypes.php" | |
| register_taxonomy( | |
| 'course_tag', | |
| 'course', | |
| array( | |
| 'hierarchical' => false, | |
| 'label' => __( 'Tags', CURRENT_THEME ), | |
| 'singular_name' => __( 'Tag', CURRENT_THEME ), |
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_action( 'pre_get_posts', 'custom_pre_get_posts_query' ); | |
| function custom_pre_get_posts_query( $q ) { | |
| if ( ! $q->is_main_query() ) return; | |
| if ( ! $q->is_post_type_archive() ) return; | |
| if ( ! is_admin() && is_shop() ) { | |
| $q->set( 'tax_query', array(array( |
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
| <?php | |
| // Populate using POST vars | |
| $data = [ | |
| 'email' => '[email protected]', | |
| 'status' => 'subscribed' | |
| ]; | |
| var_dump( syncMailchimp($data) ); |
OlderNewer