Skip to content

Instantly share code, notes, and snippets.

View krogsgard's full-sized avatar

Brian Krogsgard krogsgard

View GitHub Profile
@krogsgard
krogsgard / mq.css
Created October 3, 2012 18:31 — forked from chriscoyier/mq.css
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
// Twitter Feed
add_shortcode( 'tweet-tweet', 'infom_get_twitter_feed' );
function infom_get_twitter_feed( $atts ) {
extract(shortcode_atts(array(
'handle' => 'krogsgard',
'count' => '1'
), $atts));
$handle = sanitize_text_field( $handle );
$count = intval( $count );