- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
function get_file_size($url, $internal = true) | |
{ | |
if ($internal) { | |
$path = parse_url($url, PHP_URL_PATH); | |
$server_path = $_SERVER['DOCUMENT_ROOT'] . $path; | |
if (file_exists($server_path)) { | |
return size_format(filesize($server_path)); | |
} |
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
&__image { | |
background-color : red; | |
position : relative; | |
overflow : hidden; | |
width : 100%; | |
// Top Image (custom ratio image - closer to 4:3 than 16:9) | |
&:before { | |
display : block; | |
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
# Block Access to microsite before set date | |
RewriteCond %{TIME} <20180818230000 | |
RewriteRule ^folder-url-here(/)?$ http://www.homepage-url.com [R=307,L] |
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
dir * -include "._*",".DS*" -Recurse -Force | Remove-Item |
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 | |
/** | |
* Rewrite the posts (News) URL instead of setting the base that is applied to all CPTs | |
* | |
* @param $url | |
* @param $post | |
* | |
* @return string|void | |
*/ | |
function permalink_rewrite_to_news($url, $post) |
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 | |
/** | |
* Linking for "Ghost" post types | |
* | |
* @param $url | |
* @param $post | |
* @param bool $leavename | |
* | |
* @return mixed | |
*/ |