Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
@whyisjake
whyisjake / locations.csp
Created September 24, 2012 16:50
locations.csp
<csperl>
$mfl = $cgi->param('mfl');
$print = $cgi->param('p');
$mfl = int($mfl);
$print = int($print);
$day = $cgi->param('day');
</csperl>
<csif perl="$print == 1">
<csinclude record="cs_lay/63" field="pre" />
@whyisjake
whyisjake / aside.html
Created September 15, 2012 07:17
Good example of a semantic version of an aside...
<slide>
<aside class="note">
<section>
<ul>
<li>Point I wanted to make #1</li>
<li>Point I wanted to make #2</li>
<li>Point I wanted to make #3</li>
<li>Example <a href="#">link</a> in notes.</li>
</ul>
<p><b>Remember to say this tag line!</b></p>
@whyisjake
whyisjake / gist:3692615
Created September 10, 2012 18:07
wp_link_pages
<?php $args = array(
'before' => '<div id="nav-buttons">',
'after' => '</div>',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'next',
'nextpagelink' => __('<span class="carousel-control new next" style="font-size:60px;">&rsaquo;</span>'),
'previouspagelink' => __('<span class="carousel-control new prev" style="font-size:60px;">&lsaquo;</span>'),
'pagelink' => '%',
'echo' => 1
@whyisjake
whyisjake / remove-jquery-ui.php
Created September 10, 2012 17:15
Remove jQuery UI
<?php
//Add this to your functions.php
function remove_jquery_ui() {
if (is_page('slug-of-page')) {
wp_deregister_script( 'jquery-ui-core' );
}
}
<?php
add_action( 'init', 'make_register_cpt_slideshow' );
function make_register_cpt_slideshow() {
$labels = array(
'name' => _x( 'Slideshows', 'slideshow' ),
'singular_name' => _x( 'Slideshow', 'slideshow' ),
'add_new' => _x( 'Add New', 'slideshow' ),
@whyisjake
whyisjake / index.php
Created August 23, 2012 04:24
Trip Out
<html>
<head>
<title>Random Color</title>
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
background-color:#<?php echo substr(md5(rand()), 0, 6); ?>;
overflow: hidden;
}
@whyisjake
whyisjake / perm.php
Created August 20, 2012 18:44 — forked from mjangda/perm.php
New Permalink
add_filter( 'pre_post_link', 'make__permalink', 10, 2 );
function make__permalink( $permalink, $post ) {
if ( 'page' == $post->post_type && in_array( $post->page_name, array( 'home-page', 'home-page-include' ) ) ) {
$permalink = 'http://makezine.com';
}
return $permalink;
}
@whyisjake
whyisjake / perm.php
Created August 20, 2012 18:06
New Permalink
add_action('pre_post_link', 'make_new_permalink', 1);
function make_new_permalink() {
if ( is_page( array( 'home-page', 'home-page-include' ) ) ) {
$permalink = 'http://makezine.com';
return $permalink;
}
}
MX 10 MAIL1.EXAMPLE.COM.
MX 20 MAIL2.EXAMPLE.COM.
TXT v=spf1 include:mail.example.com ~all
CNAME autodiscover EXCHANGE.EXAMPLE.COM.
A webmail 1.2.3.4
SRV _xmpp-client._tcp 10 10 5269 example.com.
@whyisjake
whyisjake / meta.html
Created July 27, 2012 00:37
Optimal Meta Tags
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object#">
<title>{Event Item Title} | {Maker Faire - New York 2012} | MAKE magazine</title>
<meta name="description" content="The Viper, part of the Young Makers Program, is a motion controlled flight simulator inspired by the ship of the same name from the SyFy Channel's TV Series Battlestar Galactica.">
<meta property="fb:app_id" content="131038253638769">
<meta property="og:type" content="object">
<meta property="og:url" content="http://makerfaire.com/pub/e/7541">
<meta property="og:image" content="http://farm9.staticflickr.com/8017/7167917481_0a5b616ccd_o.jpg">