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
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
/* Scott Kellum Technique - Reference: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */ | |
Use this for SEO/Accessability Friendly |
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 copy(o) { | |
var copy = Object.create(Object.getPrototypeOf(o)); | |
var propNames = Object.getOwnPropertyNames(o); | |
propNames.forEach(function(name) { | |
var desc = Object.getOwnPropertyDescriptor(o, name); | |
Object.defineProperty(copy, name, desc); | |
}); | |
return copy; |
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
for ( name in object ) { | |
if ( object.hasOwnProperty(name) ) { | |
// do something | |
} | |
} | |
/* Reference: http://www.jslint.com/lint.html#forin */ |
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
# Concept: only source codes that are specific to the project should be tracked | |
# Temporary/Auxiliary Files | |
.DS_Store | |
.project | |
*.sublime-project | |
*.sublime-workspace | |
.sass-cache | |
fire_app_log.txt | |
sitemap.xml |
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
<?php if ( get_the_content() ) { ?> | |
// do or output something | |
<?php } ?> // break php tag for HTML block |
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
.video { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
} | |
.video iframe, | |
.video object, | |
.video embed { |
NewerOlder