Skip to content

Instantly share code, notes, and snippets.

Lance Guyatt lanceguyatt

Block or report user

Report or block lanceguyatt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:cafab719f8fd25dfcafb2a7d0d27e1ae
Verifying my Blockstack ID is secured with the address 1GDA7SdRsi7ijNBHNRpm6BjzZb9d3BNzhY
lanceguyatt / mixin.scss
Created Feb 24, 2014
Vertical align element
View mixin.scss
@mixin vertical-align {
&:before {
content: '';
display: inline-block;
height: 100%;
width: .1px;
vertical-align: middle;
lanceguyatt / gist:7218812
Last active Dec 26, 2015
Disable window drop shadow
View gist:7218812

Disable window drop shadow

defaults write disable-shadow -bool true

defaults write disable-shadow -bool false

lanceguyatt / _background-image-retina.scss
Last active Dec 18, 2015
Modernizr retina background sass mixin
View _background-image-retina.scss
@mixin background-image-retina($file, $type) {
$image-normal: $file + '.' + $type;
$image-retina: $file + '@2x.' + $type;
$height: image-height($image-normal);
$width: image-width($image-normal);
background: image-url($image-normal) no-repeat 0 0;
height: $height;
lanceguyatt / gist:4502588
Last active Dec 10, 2015
Update all gems
View gist:4502588
sudo gem update `gem list | cut -d ' ' -f 1`
lanceguyatt / gist:4502545
Last active Dec 10, 2015
tar.gz commands
View gist:4502545
To compress a directory use the following syntax:
sudo tar -zcvf archive_name.tar.gz directory_to_compress
To decompress an archive use the following syntax:
sudo tar -zxvf archive_name.tar.gz
lanceguyatt / gist:4494102
Last active Dec 10, 2015
SASS forloop example
View gist:4494102
/* @for - could really badass on lists if you needed them each to have unique styles (@while works similar) */
@for $i from 1 through 3 {
.my-class-#{$i} { width: 2px * $i; }
/* compiles to */
.my-class-1 {
width: 2px;
.my-class-2 {
lanceguyatt / gist:4433637
Last active Dec 10, 2015
SASS generated content placeholder example
View gist:4433637
/* @group =bullet-list */
%bullet-list {
.generatedcontent & {
list-style: none;
margin-left: 0;
li {
padding-left: 15px;
position: relative;
&:before {
color: $gold;
You can’t perform that action at this time.