Skip to content

Instantly share code, notes, and snippets.

Date: [date]

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

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

Contract Killer 3

Revised date: 07/11/2012

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.

@chrisjdavis
chrisjdavis / functions.php
Created December 10, 2012 22:22
Completed functions file
<?php
function is_subcat( $term ) {
global $wpdb;
$check = $wpdb->get_var( "SELECT terms_id FROM " . $wpdb->prefix . "termsmeta WHERE meta_value = '" . $term . "' AND meta_key = 'non-unique-slug'" );
if( $check == NULL ) {
return false;
} else {
return true;
}
}
<?php
function is_subcat( $term ) {
global $wpdb;
$check = $wpdb->get_var( "SELECT terms_id FROM " . $wpdb->prefix . "termsmeta WHERE meta_value = '" . $term . "' AND meta_key = 'non-unique-slug'" );
if( $check == NULL ) {
return false;
} else {
return true;
}
}
@chrisjdavis
chrisjdavis / gist:4073806
Created November 14, 2012 18:19
Complete Plugin
<?php
class Conversations extends Plugin
{
const APP_ID = 'YOUR_APP_ID';
const API_KEY = 'YOUR API_KEY';
const API_SECRET = 'YOUR_API_SEKRET';
public function action_init() {
DB::register_table( 'quickchats' );
DB::register_table( 'quickchat_lines' );
<?php
class GooglePrettify extends Plugin {
public function action_template_header() {
Stack::add( 'template_header_javascript', array( $this->get_url() . '/google-code-prettify/prettify.js', 'prettify-js') );
Stack::add( 'template_stylesheet', array( $this->get_url() . '/google-code-prettify/prettify.css', 'screen' ), 'prettify-css');
}
}
?>
@chrisjdavis
chrisjdavis / gist:4046787
Created November 9, 2012 16:48
Passbook server API
<?php
class PassAPI extends Plugin
{
# Registration
# register a device to receive push notifications for a pass
#
# POST /v1/devices/<deviceID>/registrations/<typeID>/<serial#>
# Header: Authorization: ApplePass <authenticationToken>
# JSON payload: { "pushToken" : <push token, which the server needs to send push notifications to this device> }
#
@chrisjdavis
chrisjdavis / quickchats.php
Created October 23, 2012 20:48
Quickchat Plural Class
<?php
/**
* Quickchats Class
*
*/
class Quickchats extends Posts
{
public static function get($paramarray = array()) {
$defaults = array(
'content_type' => 'quickchat',
@chrisjdavis
chrisjdavis / quickchat.php
Created October 23, 2012 20:48
Quickchat Singular Class
<?php
class Quickchat extends Post
{
public static function get($paramarray = array()) {
$defaults = array(
'content_type' => 'quickchat',
'fetch_fn' => 'get_row',
'limit' => 1,
'fetch_class' => 'Quickchat',
);
@chrisjdavis
chrisjdavis / phase1.php
Created October 22, 2012 23:16
Conversations Plugin: Phase 1
<?php
class Conversations extends Plugin
{
public function action_init() {
DB::register_table( 'quickchats' );
DB::register_table( 'quickchat_lines' );
}
public function action_plugin_activation() {
Post::add_new_type( 'quickchat' );