Skip to content

Instantly share code, notes, and snippets.

@pmgllc
pmgllc / 0_reuse_code.js
Last active August 29, 2015 14:25
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
<?php
add_filter( 'the_content', 'remove_breadcrum', 0 );
add_filter( 'the_content', 'add_breadcrum', 1000 );
function remove_breadcrum( $content ) {
add_filter( 'bbp_no_breadcrumb', '__return_true' );
return $content;
}
<?php
/* Plugin Name: Damn Vulnerable WordPress Plugin
* Description: Intentionally vulnerable plugin for plugin author education
* Version: 0.1
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/
* Author: Jon Cave
* Author URI: http://joncave.co.uk
* License: GPLv2+
*
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE
@pmgllc
pmgllc / viewport.php
Last active December 19, 2015 09:49
Genesis custom viewport - Genesis 2.0+ - HTML5 only
<?php
//* Add Viewport meta tag for mobile browsers (requires HTML5 theme support)
add_theme_support( 'genesis-responsive-viewport' );

Developer Contract

Revised date: 01/19/2013

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.