This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> | |
This is the primary heading and there should only be one of these per page | |
</h1> | |
<p> | |
A small paragraph to <em>emphasis</em> and show <strong>important</strong> bits. | |
</p> | |
<ul> | |
<li>This is a list item | |
</li> | |
<li>So is this - there could be more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// How to display your latest tweets in your WordPress site without a plugin | |
// Source: http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/ | |
include_once(ABSPATH . WPINC . '/feed.php'); | |
//configuration | |
$username = "EricRasch"; // Just insert the username of the Twitter account you want to display | |
$feed = "http://twitter.com/statuses/user_timeline/$username.rss"; // Changed the code from dinolatoga.com to actually use the username variable | |
$num = 2; // Set the number of Tweets you want to display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The Reference Links | |
* | |
* Outputs a refrence links list from post meta. | |
* | |
* @return string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 3D cube | |
*/ | |
body { | |
perspective: 99999px; | |
} | |
body > section { | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ig_post_custom_fields = array ( | |
"infographic" => array( | |
"name" => "is_infographic", | |
"std" => "", | |
"title" => "Is this an infographic post?", | |
"description" => "If you check this box, we'll add a Pin It share option.", | |
"type" => "checkbox"), | |
"image_url" => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasOverflowScrolling() { | |
var prefixes = ['webkit', 'moz', 'o', 'ms']; | |
var div = document.createElement('div'); | |
var body = document.getElementsByTagName('body')[0]; | |
var hasIt = false; | |
body.appendChild(div); | |
for (var i = 0; i < prefixes.length; i++) { | |
var prefix = prefixes[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* requires jQuery | |
* usage: | |
* Scroller.to({ offset: 100 }); | |
* Scroller.to({ target: $('#main') }); | |
* | |
* advanced usage (with additional easing function not provided here) | |
* Scroller.to({ target: $('#main'), delay: 500, multiplier: 1.5, easing: 'easeOutQuad' }); | |
*/ | |
var Scroller = (function() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ABSOLUTE ANCESTOR | |
Returns the absolute ancestor (parent, grandparent, great-grandparent if there is, etc.) of a post. The absolute ancestor is defined as a page that doesnt have further parents, that is, its post parent is '0' | |
****************************************************************************************************************************************/ | |
function get_absolute_ancestor($post_id){ | |
global $wpdb; | |
$parent = $wpdb->get_var("SELECT `post_parent` FROM $wpdb->posts WHERE `ID`= $post_id"); | |
if($parent == 0) //Return from the recursion with the title of the absolute ancestor post. | |
return $wpdb->get_var("SELECT `post_name` FROM $wpdb->posts WHERE `ID`= $post_id"); | |
return get_absolute_ancestor($parent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 2.1.10 on 2012-07-12 at 12:43 (EDT)--> | |
<!-- | |
An OS X US keyboard layout file with the following customizations: | |
* Option-. ONE DOT LEADER ( ․ ) | |
* Option-h UPWARDS WHITE ARROW ( ⇧ ) | |
* Option-j UP ARROWHEAD ( ⌃ ) | |
* Option-k OPTION KEY ( ⌥ ) |
OlderNewer