Skip to content

Instantly share code, notes, and snippets.

View renaudleo's full-sized avatar

Léo Renaud-Allaire renaudleo

  • Hookt Studios
  • Quebec City, QC, Canada
View GitHub Profile
@renaudleo
renaudleo / gist:4960783
Created February 15, 2013 14:43
Check if jQuery is loaded
if (typeof jQuery == 'undefined') {
var script = document.createElement('script');
script.src = "http://path.to.jquery.js";
document.getElementsByTagName('head')[0].appendChild(script);
}
@renaudleo
renaudleo / gist:10392120
Created April 10, 2014 15:08
iOS startup images
<!-- iOS 6 & 7 iPad (retina, portrait) -->
<link href="/static/images/apple-touch-startup-image-1536x2008.png"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPad (retina, landscape) -->
<link href="/static/images/apple-touch-startup-image-1496x2048.png"
media="(device-width: 768px) and (device-height: 1024px)
// SCSS
.inline-list > li{
display: inline-block;
}
.tools {
@extend .inline-list;
}