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
var gulp = require('gulp'); | |
var compass = require('gulp-compass'); | |
var prefix = require('gulp-autoprefixer'); | |
var livereload = require('gulp-livereload'); | |
gulp.task('styles', function() { | |
return gulp.src('styles/*.scss') | |
.pipe(compass({ | |
css: '.', | |
sass: 'styles', |
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
<IfModule dir_module> | |
DirectoryIndex index.html default.html index.php | |
</IfModule> | |
<IfModule mime_module> | |
AddHandler php5-script .phtml | |
AddHandler php5-script .php | |
</IfModule> | |
<VirtualHost *:80> |
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
color_enabled() { | |
test -x /usr/bin/tput | |
} | |
BRANCH_FORMAT=$(color_enabled && tput setaf 2) | |
DIR_FORMAT=$(color_enabled && tput setaf 6) | |
RESET_FORMAT=$(color_enabled && tput sgr0) | |
function git_info() { | |
git rev-parse --is-inside-work-tree &>/dev/null || return |
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 s { | |
cd /Users/Josh/Server/vhosts/$1.dev/httpdocs | |
} |
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 | |
if (!function_exists('get_input_text')): | |
function get_input_text($input) { | |
global $post_type; | |
if (is_admin() && $input == 'Enter title here') { | |
switch ($post_type) { | |
case 'my_post_type': | |
return 'Enter full name here'; |
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
#!/bin/bash | |
# Explains how to use the script | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
$0 -o output_file.zip commit_from [commit_to] |