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 | |
// remove some meta tags from WordPress | |
remove_action('wp_head', 'wp_generator'); | |
function remove_dns_prefetch( $hints, $relation_type ) { | |
if ( 'dns-prefetch' === $relation_type ) { | |
return array_diff( wp_dependencies_unique_hosts(), $hints ); | |
} | |
return $hints; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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-inner" role="listbox"> | |
<?php query_posts("posts_per_page=1&post_type=carousel"); ?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<div class="item active"> | |
<?php the_post_thumbnail('full', array( 'class' => "img-responsive")); ?> | |
</div> | |
<?php endwhile; ?> |
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
# Solution for Challenge: Pig-latin. Started 2014-09-16T15:13:49+00:00 | |
# Script: CONVERT TO PIG LATIN | |
# Iteration One: CONVERT SINGLE WORD | |
# GET a word from user input. | |
# IF the word starts with a vowel, don't change it. | |
# ELSE replace the word with its pig latin equivalent. | |
# GET all of the consonants before the first vowel in the word. |
NewerOlder