Skip to content

Instantly share code, notes, and snippets.

@dom082186
dom082186 / 0_reuse_code.js
Created October 8, 2015 08:07
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
@dom082186
dom082186 / register-post-type.php
Last active October 4, 2017 17:40
Register Post Type
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Skubbs_Post_Types {
public static function init() {
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
@dom082186
dom082186 / query.php
Created October 8, 2015 07:56
WP Query
?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = new WP_Query(array(
'post_type' => 'business_partners',
'posts_per_page' => -1,
'orderby' => 'title',
'order' => 'ASC',
@dom082186
dom082186 / custom-css.css
Last active October 25, 2015 06:53
Custom CSS Framework
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);.full-container{width:100%}.fixed-container{margin:0 auto;padding:0 15px}.column-container{font-size:0}.column{font-size:14px;padding:0 15px;vertical-align:top;display:inline-block}.xs-full{width:100%}.xs-one-half{width:50%}.xs-one-third{width:33.3333333333%}.xs-two-third{width:66.6666666667%}.xs-one-fourth{width:25%}.xs-two-fourth{width:50%}.xs-three-fourth{width:75%}.xs-one-fifth{width:20%}.xs-two-fifth{width:40%}.xs-three-fifth{width:60%}.xs-four-fifth{width:80%}.xs-one-sixth{width:16.6666666667%}.xs-two-sixth{width:33.3333333333%}.xs-three-sixth{width:50%}.xs-four-sixth{width:66.6666666667%}.xs-five-sixth{width:83.3333333333%}.xs-one-seventh{width:14.2857142857%}.xs-two-seventh{width:28.5714285714%}.xs-three-seventh{width:42.8571428571%}.xs-four-seventh{width:57.1428571429%}.xs-five-seventh{width:71.4285714286%}.xs-six-seventh{width:85.7142857143%}