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 / 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 / Compass Vertical Rhythm Toolbox
Last active October 12, 2017 22:11
Compass Vertical Rhythm and Typography Playground
@import "compass/typography";
// global vars
$base-font-size: 18px;
$base-line-height: 24px;
// establishes base grid
@include establish-baseline;
//@rhythm-borders(px, x, x)
@grayghostvisuals
grayghostvisuals / gist:5192973
Last active December 15, 2015 03:18
Performance Matters Check
@grayghostvisuals
grayghostvisuals / svg-src-swap
Created March 27, 2013 19:40
High-Res Image Swapping w/Modernizr and JavaScript
// http://dbushell.com/2013/02/04/a-primer-to-front-end-svg-hacking
if (!Modernizr.svg) {
$('img[src$=".svg"]').each(function() {
$(this).attr('src', $(this).attr('src').replace('.svg', '.png'));
});
}
@grayghostvisuals
grayghostvisuals / php-extension-stripper
Last active December 15, 2015 19:19
strip the .php extension using .htaccess trickery for Apache
# ------------------------------------------------------
# strip .php files of file extension
# ------------------------------------------------------
# rewrite strictly for files ending in .php
# Instead of your sites files as this => domain-name.com/file.php
# Rewrite so users can do this instead => domain-name.com/file
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]
@grayghostvisuals
grayghostvisuals / count-milisecond
Created April 18, 2013 20:03
Count Millisecond
Oh Let me count the millisecond ways...
16.6ms = .0166 seconds
1second / .0166seconds = 60fps