Visit my blog or connect with me one Twitter
git init
or
@mixin declare-font-face($font-family, $font-filename, $font-weight : normal, $font-style :normal, $font-stretch : normal) { | |
@font-face { | |
font-family: '#{$font-family}'; | |
src: url(font-path('#{$font-filename}.eot')); | |
src: url(font-path('#{$font-filename}.eot?#iefix')) format('embedded-opentype'), | |
url(font-path('#{$font-filename}.woff')) format('woff'), | |
url(font-path('#{$font-filename}.ttf')) format('truetype'), | |
url(font-path('#{$font-filename}.svg##{$font-family}')) format('svg'); | |
font-weight: $font-weight; | |
font-style: $font-style; |
exclude = !sh -c 'echo "$1" >> .git/info/exclude' - |
git update-index --assume-unchanged <file> |
git shortlog -s | sort -nr |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script src="https://oss.maxcdn.com/respond/1.3/respond.min.js"></script> | |
<![endif]--> |
/** | |
* Modified human_time_diff timestamp | |
* @param integer $duration (days) A threshold. If exceeded, the timestamp will return a date rather than a human_time_diff | |
* @return string A human-friendly timestamp | |
* | |
* credit: http://www.binarymoon.co.uk/2013/12/wordpress-improved-human-time-difference/ | |
* | |
*/ | |
function human_time_diff_enhanced( $duration = 60 ) { |
/* When using a fixer header that takes up the top 100px | |
or so, you can offset the anchor jump using the following */ | |
.offset-anchor:before { | |
display: block; | |
content: " "; | |
height: 100px; /* Give height of your fixed element */ | |
margin-top: -100px; /* Give negative margin of your fixed element */ | |
visibility: hidden; | |
} |
var width = $(window).width(); | |
$(window).resize(function(){ | |
if($(this).width() != width){ | |
width = $(this).width(); | |
console.log(width); | |
// your code | |
} | |
}); |
Visit my blog or connect with me one Twitter
git init
or
<snippet> | |
<content><![CDATA[ | |
/* | |
${1} | |
*/ | |
]]></content> | |
<tabTrigger>block</tabTrigger> | |
<description>CSS block comment</description> |