Skip to content

Instantly share code, notes, and snippets.

View roybarber's full-sized avatar

Roy Barber roybarber

View GitHub Profile
@roybarber
roybarber / _sprites.scss
Created February 3, 2013 16:12
Gist of to compile sprites via compass/sass
// demo sprite generation - edit core with the name of the folder you wish to use
// This tells compass to also print out the width & height into the css
$core-sprite-dimensions: true;
// Folder and file type to watch
@import "core/*.png";
// Include Sprites ito stylesheet
@include all-core-sprites;
@roybarber
roybarber / .gitignore
Created January 27, 2013 16:52
wordpress .gitignore
# Don't add the Local settings file to the repository #
htdocs/wp-config-local.php
# If using SASS to compile stylesheets this saves conflicts, plus there not needed! #
htdocs/wp-content/themes/YOURTHEME/.sass-cache/*
# No need to add the upgrade folder to the repo #
htdocs/wp-content/upgrade/*
# sitemaps not needed locally #
@roybarber
roybarber / wp-config.php
Created January 27, 2013 16:51
Wordpress Config - Live Server
<?php
// Use these settings on the local server
if ( file_exists( dirname( __FILE__ ) . '/wp-config-local.php' ) ) {
include( dirname( __FILE__ ) . '/wp-config-local.php' );
// Otherwise use the below settings (on live server)
} else {
// Live Server Database Settings
@roybarber
roybarber / wp-local-config.php
Created January 27, 2013 16:47
Wordpress Local Settings Template
<?php
// Local server settings
// Local Database
define('DB_NAME', 'client');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('DB_HOST', 'localhost');
// Overwrites the database to save keep edeting the DB