Skip to content

Instantly share code, notes, and snippets.

View rawwebdesign's full-sized avatar

Bradley Spencer rawwebdesign

View GitHub Profile
@rawwebdesign
rawwebdesign / query_posts
Created December 13, 2011 16:21
query_posts
<?php $postid = get_the_ID(); ?>
<?php wp_reset_query(); // Restore global post data ?>
<?php
query_posts(array("showposts" => "12", "post_parent" => $postid, "post_type" => "page")); ?>
<div id='whatwedowrapper'>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
@rawwebdesign
rawwebdesign / gtd.markdown
Created January 4, 2012 22:14
What is Getting Things Done?

#What is Getting Things Done? Getting Things Done is a personal management framework that enables anyone to manage their obligations. GTD is unique in it's focus on clearing the mind to enabling creative thinking in times of stress.

Instead of explaining the step-by-step of GTD, let's look at the tenants that separate it from other personal productivity approaches:

##Actionability: The first question is: "Is this actionable?" Mental clutter comes from getting unactionable items mixed into your todo list. Unactionable items are treated differently and aren't placed on your todo list.

##Next Actions: The motto of GTD is: "What is the next action?". An example: A typical todo list might include: "Get Gym Membership". GTD encourages practicioners to break that into next actions. While "Get Gym Membership" is the goal, but what are the steps that get you there? The next action may be "Call 3 Local Gyms to Get Pricing". Which is more enticing when you look at your todo list?

@rawwebdesign
rawwebdesign / gawrapper
Created January 16, 2012 19:42
GA Wrapper
<script type="text/javascript">
$(document).ready(function() {
if ((location.href)==="http://srmcinc.com/contact/?success=true") {
/* <![CDATA[ */
var google_conversion_id = 1072183080;
var google_conversion_language = "en";
var google_conversion_format = "1";
var google_conversion_color = "000000";
var google_conversion_label = "fQgsCNnAvwIQqO6g_wM";
var google_conversion_value = 0;
<html>
<?php
//this require pulls in the function and db connection variables
require './writetodbconfig.php';
$con = mysql_connect($braddbhost,$braddbuser,$braddbpw);
if (!$con)
{
die('Could not connect: ' . mysql_error());
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-Vets-_Date_Memorial.jpg' alt='Donate Cars to Veterans'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Car Donation Ohio</a></small>
</center>
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-Cars_help_vets.jpg' alt='Donate Cars to Help Veterans'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Car Donation Ohio</a></small>
</center>
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-Cars_Ohio_help_vets.jpg' alt='Donate your car for veterans'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Auto Donation Ohio</a></small>
</center>
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-WE-heart_Mansfield_Ohio_Vets.jpg' alt='Donate your car'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Vehicle Donation Ohio</a></small>
</center>
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-WE-heart_Cleveland_Ohio_Vets.jpg' alt='Donate Your Car'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Car Donation Ohio</a></small>
</center>
<center>
<a href='http://www.voago.org/DonateYourAuto'><img src='http://www.voaautodonation.org/assets/VOAGO-I-heart_Dayton_Ohio_Vets.jpg' alt='Donate a Car'/></a>
<small><a href='http://www.voago.org/DonateYourAuto'>Car Donation Ohio</a></small>
</center>