This file contains hidden or 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 | |
function x_get_issue_archive_link( $atts, $content = null ) { | |
global $post; | |
return '<a href="' esc_url( get_post_meta( get_the_ID(), 'issue-archive-1-link', true) . '">' . wp_kses_post( do_shortcode( $content ) ) . '</a>'; | |
} | |
add_shortcode( 'archive-link', 'x_get_issue_archive_link' ); |
This file contains hidden or 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
int led1 = 13; | |
int led2 =12; | |
int button=7; | |
int value=0; | |
int ledon=0;// 0 = led off, 1 = led on | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(led1, OUTPUT); |
This file contains hidden or 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
<div class="carousel slide" id="myCarousel-1234"> | |
<div class="carousel-inner"> | |
<div class="item active"> | |
<a href="http://makerfairenyc.eventbrite.com/"><img class="alignnone size-full wp-image-9960" alt="Tickets are on sale for NYC!" src="http://makerfaire.files.wordpress.com/2013/07/2.jpg?h=300" /></a> | |
<div class="carousel-caption"> | |
<h3>Tickets are on sale for World Maker Faire New York 2013.</h3> | |
</div> | |
</div> | |
<div class="item"> | |
<a href="http://makerfairenyc.eventbrite.com/"><img class="alignnone size-full wp-image-9960" alt="Tickets are on sale for NYC!" src="http://makerfaire.files.wordpress.com/2013/07/1.jpg?h=300" /></a> |
This file contains hidden or 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
{ | |
"device": "Arduino", | |
"url": "http://makeprojects.com/Project/Build+an+LED+Photometer/3021/1", | |
"guide": { | |
"author": { | |
"text": "Eric Weinhoffer", | |
"userid": 15040 | |
}, | |
"categories": [ | |
"Arduino", |
This file contains hidden or 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
[maker-camp-project | |
title="Repeat After Me Memory Game" | |
project_url="http://makezine.com/projects/repeat-after-me-a-mintronics-memory-game/" | |
img="http://i1.wp.com/make-images.s3.amazonaws.com/KeXBEDVlV3lGPffR.jpg" | |
date="Weekend Project" | |
link="http://makezine.com/projects/repeat-after-me-a-mintronics-memory-game/" | |
link_title="Make It"] | |
In this project, we'll turn a MAKE MintDuino microcontroller and a Mintronics Survival Pack into a replica of retro electronic memory games like Simon and the Tandy Pocket Repeat game sold by RadioShack in the 1980s. |
This file contains hidden or 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 | |
/** | |
* Modal Window Builder | |
*/ | |
function make_modal_builder( $atts, $content = null ) { | |
extract( shortcode_atts( array( | |
'launch' => 'Launch Window', | |
'title' => 'Modal Title', | |
'btn_class' => '', |
This file contains hidden or 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
jQuery(document).ready(function(){ | |
jQuery('.carousel').on('slid', function () { | |
googletag.pubads().refresh(); | |
_gaq.push(['_trackPageview']); | |
console.log('Pushed a pageview, and an ad refresh, like a boss.'); | |
var urlref = location.href; | |
PARSELY.beacon.trackPageView({ | |
url: urlref, | |
urlref: urlref, | |
js: 1, |
This file contains hidden or 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 Better Gallery shortcode, courtesy of WordPress Core | |
* | |
* Wanted to extend our Bootstrap Slideshow so that you could put in Post IDs and get back a slideshow. | |
* Basically the same thing that the default slideshow does, so why not use that! | |
* | |
* @since 1.0 | |
* | |
* @param array $attr Attributes of the shortcode. |
This file contains hidden or 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 | |
/** | |
* Function to count the statuses of Maker Faire applications | |
*/ | |
function mf_count_post_statuses() { | |
$types = array( | |
'Any' => 'any', | |
'Accepted' => 'accepted', | |
'Draft' => 'draft', | |
'In Progress' => 'in-progress', |