This file contains hidden or 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
[ | |
"/src/", | |
"/.sass-cache/", "/node_modules/", | |
"\\.scssc", "\\.sassc" | |
] |
This file contains hidden or 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
/** | |
* CSS Mask (WebKit only) | |
*/ | |
div { | |
width: 300px; | |
height: 200px; | |
background: red; | |
mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0)); | |
} |
This file contains hidden or 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
/* CSS Mask (WebKit only) */ | |
div { | |
width: 300px; | |
height: 200px; | |
background: red; | |
mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0)); | |
} | |
div:last-child { |
This file contains hidden or 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
var siteURL = "http://" + top.location.host.toString(); |
This file contains hidden or 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
/* | |
* COOKIE HANDLING FUNCTIONS | |
* Source: http://www.quirksmode.org/js/cookies.html | |
*/ | |
function createCookie(name,value,days) { | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
var expires = "; expires="+date.toGMTString(); |
This file contains hidden or 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
/* | |
* FLASH DETECTION | |
* https://coderwall.com/p/0drlya | |
*/ | |
if(typeof navigator.plugins != "undefined" && | |
typeof navigator.plugins["Shockwave Flash"] == "object") { | |
document.documentElement.className = document.documentElement.className + ' flash'; | |
} else { | |
document.documentElement.className = document.documentElement.className + ' no-flash'; |
This file contains hidden or 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
[ | |
{ "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+shift+v"], "command": "paste" } | |
] |
This file contains hidden or 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
@mixin keyframes( $animationName ) { | |
@-webkit-keyframes $animationName { | |
@content; | |
} | |
@-moz-keyframes $animationName { | |
@content; | |
} | |
@-o-keyframes $animationName { | |
@content; | |
} |
This file contains hidden or 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
<?php the_post(); if(trim($post->post_content) != "") : ?> | |
<div class="main-content"> | |
<?php the_content(); ?> | |
</div> | |
<?php endif; ?> |
This file contains hidden or 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
// usage: log('inside coolFunc',this,arguments); | |
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console){ | |
console.log( Array.prototype.slice.call(arguments) ); | |
} | |
}; |