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 | |
| /** | |
| * Custom Error Handler for E_RECOVERABLE_ERROR | |
| * | |
| * http://stackoverflow.com/a/2468534/285564 | |
| * | |
| * @param $errno | |
| * @param $errstr | |
| * @param $errfile |
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
| alias vh='vagrant halt; terminal-notifier -sound default -title "Vagrant Status" -message "Vagrant shutdown successfully" &' | |
| alias vu='vagrant up; terminal-notifier -sound default -title "Vagrant Status" -message "Vagrant is ready!" &' | |
| alias vr='vagrant reload' |
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 cmb_list_metaboxes( array $meta_boxes ) { | |
| $fields = array( | |
| array( | |
| 'id' => 'description', | |
| 'name' => 'Description', | |
| 'type' => 'text' | |
| ), | |
| array( | |
| 'id' => 'completed', |
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
| case 'POST': | |
| // new item | |
| $data = json_decode( file_get_contents( "php://input" ), true ); | |
| $list_item = $data['description']; | |
| $post_meta = get_post_meta( 7, 'list-item' ); | |
| add_post_meta(7,'list-item', $list_item ); |
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
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="agnoster" | |
| DEFAULT_USER="pauldewouters" |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| concat: { | |
| options: { | |
| separator: ';' | |
| }, | |
| dist: { | |
| src: ['src/**/*.js'], |
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
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |
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
| $form = get_sub_field( 'select_form' ); | |
| gravity_form_enqueue_scripts( $form->id, true ); | |
| gravity_form( $form->id, false, true, false, '', true, 1 ); |
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
| uasort( $this->tweets, function( $a, $b ){ | |
| if ( strtotime($a->created_at) == strtotime($b->created_at) ) { | |
| return 0; | |
| } | |
| return ( strtotime($a->created_at) < strtotime($b->created_at) ) ? -1 : 1; | |
| }); |
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(document).ready(function($) { | |
| // The number of the next page to load (/page/x/). | |
| var pageNum = parseInt(ssm_alp.startPage) + 1; | |
| // The maximum number of pages the current query can return. | |
| var max = parseInt(ssm_alp.maxPages); | |
| // The link of the next page of posts. | |
| var nextLink = ssm_alp.nextLink; |