- 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
| /* -------------------------------------------------------------------------- */ | |
| // All Bootstrap 4 Sass Mixins [Cheat sheet] | |
| // @author http://anschaef.de | |
| // @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins | |
| /* -------------------------------------------------------------------------- */ | |
| // Grid variables | |
| $grid-columns: 12 !default; | |
| $grid-gutter-width: 30px !default; |
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 | |
| /** | |
| * MIME TYPES | |
| * 'pdf' => 'application/pdf', | |
| * 'swf' => 'application/x-shockwave-flash', | |
| * 'mov|qt' => 'video/quicktime', | |
| * 'flv' => 'video/x-flv', | |
| * 'js' => 'application/javascript', | |
| * 'avi' => 'video/avi', |
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 | |
| /** | |
| * Load Enqueued Scripts in the Footer | |
| * | |
| * Automatically move JavaScript code to page footer, speeding up page loading time. | |
| */ | |
| function footer_enqueue_scripts() { | |
| remove_action('wp_head', 'wp_print_scripts'); | |
| remove_action('wp_head', 'wp_print_head_scripts', 9); | |
| remove_action('wp_head', 'wp_enqueue_scripts', 1); |
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
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0b1 | 201101 | |
| NOTE: WORK IN PROGRESS | |
| USE WITH CAUTION AND TEST WITH ABANDON */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, |
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 | |
| // Add to the body_class function | |
| function condensed_body_class($classes) { | |
| global $post; | |
| // add a class for the name of the page - later might want to remove the auto generated pageid class which isn't very useful | |
| if( is_page()) { | |
| $pn = $post->post_name; | |
| $classes[] = "page_".$pn; | |
| } |
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 | |
| function add_jquery_ui() { | |
| wp_enqueue_script( 'jquery-ui-core' ); | |
| wp_enqueue_script( 'jquery-ui-widget' ); | |
| wp_enqueue_script( 'jquery-ui-mouse' ); | |
| wp_enqueue_script( 'jquery-ui-accordion' ); | |
| wp_enqueue_script( 'jquery-ui-autocomplete' ); | |
| wp_enqueue_script( 'jquery-ui-slider' ); | |
| wp_enqueue_script( 'jquery-ui-tabs' ); | |
| wp_enqueue_script( 'jquery-ui-sortable' ); |
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
| add_filter( 'pre_option_upload_url_path', 'subdomain_upload_url' ); | |
| function subdomain_upload_url() | |
| { | |
| return 'http://subdomain.domain.com/wp-content/uploads'; | |
| } |
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
| <?php | |
| $mycontent = $post->post_content; // wordpress users only | |
| $word = str_word_count(strip_tags($mycontent)); | |
| $m = floor($word / 200); | |
| $s = floor($word % 200 / (200 / 60)); | |
| $est = $m . ' minute' . ($m == 1 ? '' : 's') . ', ' . $s . ' second' . ($s == 1 ? '' : 's'); | |
| ?> | |
| <p>Estimated reading time: <?php echo $est; ?></p> |
NewerOlder