Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
<div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#1" data-toggle="tab">Main Stage</a></li>
<li><a href="#2" data-toggle="tab">Center Stage</a></li>
</ul>
<div class="tab-content" style="width:497px">
<div class="tab-pane active" id="1">
[mf_full_schedule location="Main Stage"]
</div>
<div class="tab-pane" id="2">
<div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#1" data-toggle="tab">Full Schedule</a></li>
<li><a href="#2" data-toggle="tab">Center Stage</a></li>
</ul>
<div class="tab-content" style="width:497px">
<div class="tab-pane active" id="1">
[mf_full_schedule location=""]
</div>
<div class="tab-pane" id="2">
$args = array(
'location' => $atts['location'],
'post_type' => 'event-items',
// 'orderby' => 'meta_value_num',
//'meta_key' => 'mfei_start',
'meta_value' => 'Sunday',
'posts_per_page'=> '30'
);
$query = new WP_Query( $args );
// Individual Arrays
array
0 => string 'Keith Pelczarski' (length=16)
1 => string 'Heather Harding' (length=15)
array
0 => string 'Lovebian Designs is run by Heather and Keith (a.k.a. Coco). They are jack-of-all-trades with strong interests in design, screen printing, and sewing. They hand make their products with love.' (length=190)
array
0 => string 'http://makerfaire.files.wordpress.com/2013/04/hk_unicorns-500x375.jpg' (length=69)
array
<?php
echo 'Hello World!';
@whyisjake
whyisjake / blink.ino
Created April 11, 2013 16:47
Arduino Blink Project
@whyisjake
whyisjake / wii_nunchuk.py
Created April 8, 2013 21:48
Wii Nunchuk Script
# Import the required libraries for this script
import math, string, time, serial, win32api, win32con
# The port to which your Arduino board is connected
port = 'arduino_port'
# Invert y-axis (True/False)
invertY = False
# The cursor speed
@whyisjake
whyisjake / gps.js
Created April 3, 2013 23:35
Get's the GPS location from the browser.
navigator.geolocation.getCurrentPosition(GetLocation);
function GetLocation(location) {
alert(location.coords.latitude);
alert(location.coords.longitude);
alert(location.coords.accuracy);
console.log(location);
}
@whyisjake
whyisjake / theme_stuff.php
Created April 1, 2013 18:00
Bring the content from all post types into tag/author/tax pages.
<?
/**
* Add different content types to the main queries.
* This will bring posts, craft, projects, video into the main query. Allows for better archive pages.
* @return string Main category name.
*/
// TODO: Bring in reviews.
function make_add_custom_types( $query ) {
if ( ! is_admin() && $query->is_main_query() && ( $query->is_tag() || $query->is_author() || $query-> is_tax() ) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'post_type', array( 'post', 'craft', 'projects', 'video' ));
<?php
$id = get_queried_object_id();
$name = get_cat_name( $id );
?>
<div class="grey child">
<div class="container">
<div class="row">