Skip to content

Instantly share code, notes, and snippets.

View LukeMichaels's full-sized avatar
:shipit:
Hi

Luke Michaels LukeMichaels

:shipit:
Hi
View GitHub Profile
@LukeMichaels
LukeMichaels / 0_reuse_code.js
Created March 10, 2014 05:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@LukeMichaels
LukeMichaels / css_resources.md
Created March 10, 2014 05:48 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 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.

Guides

<style type="text/css"> @import "<<**SelectionInsertionPlaceholder**>>"; </style>
@LukeMichaels
LukeMichaels / wordpress-loop-posts-in-category.php
Created December 18, 2015 01:20
Loop posts from specific category 'cat' => 18 // the category ID # 'showposts' => 16 // the # of posts to display
/* remove `post_type` if not using a custom post type */
<?php query_posts( array( 'post_type' => 'your_category_title', 'cat' => 18, 'showposts' => 16 ) );
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php echo $post->post_title; ?></h2>
<p><?php the_content(); ?></p>
<a href="<?php echo get_permalink($post->ID); ?>">link</a>
<?php endwhile; endif; wp_reset_query(); ?>