Skip to content

Instantly share code, notes, and snippets.

View grayghostvisuals's full-sized avatar
🐢
I may be slow to respond.

GRAY GHOST grayghostvisuals

🐢
I may be slow to respond.
View GitHub Profile
@grayghostvisuals
grayghostvisuals / WordPress Title Filter B
Created October 17, 2012 18:44
This approach was posted via theme reviewers mailing list and unanimously agreed upon as the correct implementation.
function wpflex_filter_wp_title( $title ) {
global $wp_query, $s, $paged, $page;
if ( !is_feed() ) {
$sep = __('»');
$new_title = get_bloginfo('name').' ';
$bloginfo_description = get_bloginfo('description');
if ((is_home () || is_front_page()) && !empty($bloginfo_description) && !$paged && !$page) {
$new_title .= $sep.' '.$bloginfo_description;
}
@grayghostvisuals
grayghostvisuals / Respond To Sass Mixin
Created October 23, 2012 03:20
Handy mixin for Sass that helps to ease the pain of writing media queries
_mixin.scss
@mixin respond($media-type, $value) {
@media ($media-type: $value) {
@content
}
}
@grayghostvisuals
grayghostvisuals / Updating Brew
Created October 30, 2012 22:28
Fix for Cannot "brew update" anymore - fails to git pull formulas
[https://github.com/mxcl/homebrew/issues/11448](https://github.com/mxcl/homebrew/issues/11448)
cd `brew --prefix`
git remote add origin https://github.com/mxcl/homebrew.git
git fetch origin
git reset --hard origin/master
@grayghostvisuals
grayghostvisuals / Fluidize
Created November 7, 2012 01:25
Sass function to return our responsive formula
@function responsive($target, $context) {
@return ($target / $context) * 100%;
}
@grayghostvisuals
grayghostvisuals / Contract Killer 3.md
Created November 7, 2012 13:31 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@grayghostvisuals
grayghostvisuals / screenshots
Created January 9, 2013 07:55
Copy/Paste Screenshots Directly Into Photoshop
#Reference
#http://esbueno.noahstokes.com/post/40039075291/copy-paste-screenshots-directly-into-photoshop
#Selection Cursor: Copies to Desktop
Use built in Mac OS screenshot tool (Command + Shift + 4)
#Selection Cursor: Copies to Clipboard for Photoshop
Use built in Mac OS screenshot tool (Command + Control + Shift +4)
@grayghostvisuals
grayghostvisuals / gemfinder.rb
Last active December 10, 2015 21:58
GemFinder
#takes you to your ruby dir
#if you're using ruby version manager
cd $(rvm gemdir)
#then type
ls
#you'll see the gems folder then type
gem list
@grayghostvisuals
grayghostvisuals / Rakefile
Created January 12, 2013 19:15
Yeoman build automation for gh-page deployment.
# Description:
# Yeoman build automation for gh-page deployment.
#
# Credits:
# Made possible by @ChrisJeane and GrayGhostVisuals (@gryghostvisuals)
#
# How To:
# This Rakefile goes in the root directory outside of your
# yeoman project. after you've run 'yeoman build' you may then
# run 'rake build from your project's main root directory.
@grayghostvisuals
grayghostvisuals / index.html
Created February 9, 2013 23:20
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>
@grayghostvisuals
grayghostvisuals / gist:5192973
Last active December 15, 2015 03:18
Performance Matters Check