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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="eastwood" | |
# Example aliases |
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
do($=jQuery) => | |
class pageLink | |
constructor:($el) -> | |
@$el = $el; | |
@on(); | |
on: -> | |
@$el.on "click", "a", @click.bind(@) |
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
"use strict" | |
gulp = require "gulp" | |
watch = require 'gulp-watch' | |
compass = require "gulp-compass" | |
path = require 'path' | |
plumber = require 'gulp-plumber' | |
publicDir = "./public/" |
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
.vagrant | |
www/wordpress/*.* | |
www/wordpress/wp-admin/ | |
www/wordpress/wp-includes/ | |
www/wordpress/wp-content/*.* | |
www/wordpress/wp-content/*/ | |
!www/wordpress/wp-content/plugins/ | |
www/wordpress/wp-content/plugins/*/ |
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
{ | |
"directory": "vendor/assets/bower_components", | |
"json": "bower.json" | |
} |
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 | |
add_image_size("my-image-size", 300, 200, true); | |
add_image_size("my-image-size@2x", 600, 400, true); | |
add_filter("post_thumbnail_html",function( $html, $post_id, $post_thumbnail_id, $size, $attr ){ | |
$retina_size = $size."@2x"; | |
if(!has_image_size($retina_size)) { | |
return $html; |
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 | |
Class PageContents { | |
private $dir; | |
private $separator = "_"; | |
private $content_dir = "page-contents"; | |
public function __construct() { | |
$this->dir = get_stylesheet_directory()."/".$this->content_dir; | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
# | |
# Configuration | |
# | |
#VM_BOX = "ubuntu/trusty64" # Ubuntu 14.04 |
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 | |
$post_types = get_post_types( array('_builtin'=>false, 'publicly_queryable'=>true, 'show_ui' => true) ); | |
foreach ($post_types as $key => $post_type) { | |
$posts = get_posts( array("post_type" => $post_type, "posts_per_page" => 1) ); | |
foreach ( $posts as $post ) : setup_postdata( $post ); ?> | |
<li> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
</li> | |
<?php endforeach; |
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
$gutter: 20px !default; | |
$flex: true !default; | |
$colslist: 1, 2, 3, 4, 5, 6, 12; | |
@mixin grid-unit($num) { | |
@for $i from 1 through $num { | |
&_#{$i}of#{$num} { | |
width: percentage($i/$num); | |
flex-basis: percentage($i/$num); |