Skip to content

Instantly share code, notes, and snippets.

View kyletheisen's full-sized avatar

Kyle Theisen kyletheisen

  • Skyhook Interactive
  • Tempe, AZ
View GitHub Profile
@kyletheisen
kyletheisen / stylish
Created September 11, 2015 15:09
Modified Asana project header
.tab-nav-div .tab-nav-bar.tab-nav-bar-center { position: absolute; left: 10px; top: 10px; }
@kyletheisen
kyletheisen / gist:3144991
Created July 19, 2012 16:11
WordPress Shortcode w/ WP_Query
/** ------------------------------------------------------------------------------------------ */
//** Shortcode for Candidates
/** ------------------------------------------------------------------------------------------ */
add_shortcode( 'list_candidates', 'listcandidates_func' );
function listcandidates_func( $atts ){
extract( shortcode_atts( array(
'party' => '',
'candidates' => '',
), $atts ) );
@kyletheisen
kyletheisen / gist:2003448
Created March 8, 2012 21:04 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@kyletheisen
kyletheisen / gist:2003344
Created March 8, 2012 20:46
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}