This file contains 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
!!! | |
/[if lt IE 7] | |
%html{:class => "no-js lt-ie9 lt-ie8 lt-ie7"} | |
/[if IE 7] | |
%html{:class => "no-js lt-ie9 lt-ie8"} | |
/[if IE 8] | |
%html{:class => "no-js lt-ie9"} | |
\<!--[if gt IE 8]><!--> | |
%html{:class => "no-js"} |
This file contains 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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Right-Hand Copy for Left-Handed Mouse Users</name> | |
<appendix>Fn+Control_R to Command_L+C</appendix> | |
<identifier>remap.right_hand_copy_keytokey</identifier> | |
<autogen>--KeyToKey-- KeyCode::FN, ModifierFlag::CONTROL_R, KeyCode::C, ModifierFlag::COMMAND_L</autogen> | |
</item> |
This file contains 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
# SVG polyfill (requires modernizr - http://modernizr.com) | |
unless Modernizr.svg | |
$('img[src *= ".svg"]').each( -> | |
nurl = $(this).attr('src').replace(/\.svg$/, '.png') | |
$(this).attr src: nurl | |
) |
This file contains 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
/* QUERY STRINGS ---- */ | |
// name = parameter in qstring to return, qstr = string to search, which defaults to the current URL if not present | |
function getParameterByName(name, qstr) { | |
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
var regex = new RegExp(regexS); | |
var results = (qstr) ? regex.exec(qstr) : regex.exec(window.location.search); | |
if(results == null) | |
return ""; | |
else |
This file contains 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
/* | |
============================================================================= | |
NORMALIZE (using HTML5 Boilerplate) | |
============================================================================= | |
*/ | |
/* HTML5 element display | |
========================================================================== */ | |
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } | |
audio[controls], canvas, video { display: inline-block; *display: inline; *zoom: 1; } |
This file contains 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
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// LESS CSS Styles | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// Vendor Prefix Groups | |
// --------------------------------------------------- | |
.border-radius (@radius) { | |
-moz-border-radius:@radius; | |
-webkit-border-radius:@radius; | |
-o-border-radius:@radius; |
This file contains 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
function addCommas(nStr) { | |
nStr += ''; | |
x = nStr.split('.'); | |
x1 = x[0]; | |
x2 = x.length > 1 ? '.' + x[1] : ''; | |
var rgx = /(\d+)(\d{3})/; | |
while (rgx.test(x1)) { | |
x1 = x1.replace(rgx, '$1' + ',' + '$2'); | |
} | |
return x1 + x2; |
This file contains 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
function writeFlickrPics() { | |
var $flickrContainer = $(".flickr ul"); | |
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=52617155@N08&format=json&jsoncallback=?", function(data) { | |
var listItems = []; | |
$.each(data.items, function(i, item) { | |
var sqr = (item.media.m).replace("_m.jpg", "_s.jpg"); | |
listItems.push("<li><a href='" + item.link + "'><img src='" + sqr + "' /></a></li>"); | |
}); | |
$flickrContainer.append(listItems.join('')); | |
}); |