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
/** | |
* 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 ) { |
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 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]--> |
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
git shortlog -s | sort -nr |
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
git update-index --assume-unchanged <file> |
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
/* 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; | |
} |
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
<snippet> | |
<content><![CDATA[ | |
/* | |
${1} | |
*/ | |
]]></content> | |
<tabTrigger>block</tabTrigger> | |
<description>CSS block comment</description> |
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
<snippet> | |
<content><![CDATA[ | |
<pre> | |
<?php print_r(\$${1}); ?> | |
</pre> | |
]]></content> | |
<tabTrigger>pr</tabTrigger> | |
<description></description> | |
<scope>text.html.basic, punctuation.whitespace.embedded.leading.php</scope> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
/* =========================================== */ | |
/* MEDIA: IPHONES (RETINA) */ | |
/* =========================================== */ | |
@media only screen and (min-width : 320px) { | |
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
<snippet> | |
<!-- Example: Hello, ${1:this} is a ${2:snippet}. --> | |
<content><![CDATA[ | |
/* | |
--------------------------------------------------------------------------- | |
${1} | |
--------------------------------------------------------------------------- | |
${2} |
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
// Disable completions of HTML attributes | |
// with this option disabled, you can get attribute list completions | |
// inside opening HTML tags. | |
// WARNING: with this option disabled, Tab key expander will not | |
// work inside opening HTML attributes | |
"disable_completions": false, | |
// With this option enabled, all Emmet's CSS snippets | |
// will be available in standard auto-complete popup | |
"show_css_completions": true, |
OlderNewer