A Pen by Fabrizio Bianchi on CodePen.
This file contains 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 | |
/** | |
* Abstract class which has helper functions to get data from the database | |
*/ | |
abstract class Base_Custom_Data | |
{ | |
/** | |
* The current table name | |
* | |
* @var boolean |
This file contains 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
FIND | |
<param name="dynamicStreaming" value="true" /> | |
AFTER ADD | |
<param name="includeAPI" value="true" /> | |
<param name="templateLoadHandler" value="BCL.onTemplateLoaded" /> | |
<param name="templateReadyHandler" value="BCL.onTemplateReady" /> | |
Which should be before | |
<param name="@videoPlayer" value="some_video_id" / > |
This file contains 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 | |
/** | |
* Blocks Admin Panel from loading Google Fonts - Open Sans, mainly for work offline. I hate the lag when there is no internet. | |
* | |
* Created 6/21/14, 12:57 PM | |
* | |
* @category WordPress Plugin | |
* @package Block External Scripts - block_external_scripts.php | |
* @author Jeff Behnke <code@validwebs.com> |
This file contains 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
// Breaks ORDER BY silently | |
$sql = $this->wpdb->prepare( "SELECT * FROM $this->table ORDER BY 'id' ASC LIMIT %d OFFSET %d", $limit, $start ); | |
// Works correctly | |
$sql = $this->wpdb->prepare( "SELECT * FROM $this->table ORDER BY id ASC LIMIT %d OFFSET %d", $limit, $start ); | |
$rows = $this->wpdb->get_results( $sql ); | |
return $rows; |
This file contains 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
#!/bin/bash | |
# | |
# provision.sh | |
# | |
# This file is specified in Vagrantfile and is loaded by Vagrant as the primary | |
# provisioning script whenever the commands `vagrant up`, `vagrant provision`, | |
# or `vagrant reload` are used. It provides all of the default packages and | |
# configurations included with Varying Vagrant Vagrants. | |
# By storing the date now, we can calculate the duration of provisioning at the |
This file contains 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
cd $(brew --repository) | |
sudo chown -R $USER . | |
git reset --hard origin/master | |
brew update |
This file contains 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 | |
/** | |
* Register Custom Status | |
* | |
*/ | |
function custom_archived_post_status() { | |
$args = array( |
This file contains 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
// http://mattbanks.me/grunt-wordpress-development-deployments/ | |
// https://github.com/mattbanks/WordPress-Starter-Theme/blob/master/Gruntfile.js | |
'use strict'; | |
module.exports = function (grunt) { | |
// load all grunt tasks matching the `grunt-*` pattern | |
require('load-grunt-tasks')(grunt); | |
var $proxy = 'vvv_domain.dev'; |
This file contains 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
# Not saying this is a fix all, but this is what I had to do to get VVV running properly on my system. | |
# It failed to install properly do to script errors | |
# Branch master | |
# head 7f5411455573bba88d8ce232db957c62b11977f5 | |
# VVV Update issues | |
vagrant ssh | |
su | |
#pass |