- z - Install via homebrew:
brew install z
- Git Friendly
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
default_username='paulvenuto' | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 |
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
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* @author: https://gist.github.com/nhoizey/4060568 | |
* Modified By: [email protected] | |
* CHANGELOG: new viewports | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ |
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
if ( $('body').is(".index") ) { | |
// var canvas = document.createElement('canvas'); | |
// canvas.id = "blur-layer"; | |
// canvas.width = $(window).width(); | |
// canvas.height = $(window).height(); | |
// context = canvas.getContext("2d"); | |
// document.body.appendChild(canvas); |
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
# Fill Murray Placeholder Images | |
# example: <%= image_tag fill_murray('400x300') %> | |
def fill_murray(dimensions, grayscale=false) | |
width, height = dimensions.split("x") | |
if grayscale == true | |
'http://fillmurray.com/g/' + width + '/' + height | |
else | |
'http://fillmurray.com/' + width + '/' + height | |
end | |
end |
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
.font-size($pxValue){ | |
@remValue: (@pxValue / 10); | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} | |
html { font-size: 62.5%; } | |
.my-element { | |
.font-size(13px); |
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
// A feature in Sass 3.2 (bleeding edge gem for now) is the concept of silent extends as follows | |
// By replacing the (.) with a (%), this will create a 'silent class' that is not written out to CSS | |
// until it is 'extended', EPIC! | |
// Put that in your OOCSS! | |
%kung { | |
background: green; | |
color: yellow; | |
} |
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
$.extend($.expr[':'], { | |
outbound: function(a,i,m) { | |
if(!a.href) { return false; } | |
return a.hostname && a.hostname !== window.location.hostname; | |
} | |
}); |
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
// optional, i like the light black better | |
$grid-background-column-color:rgba(black, 0.075); | |
@mixin debug-susy-grid($points){ | |
#grid{ position:absolute; top:0px; right:$grid-padding; left:$grid-padding; bottom:0px; display:none; | |
@include susy-grid-background; z-index:10000; | |
@for $i from 1 to length($points){ | |
@include at-breakpoint(nth($points, $i)){ | |
@include susy-grid-background; |
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 $tester = $('#type-tester'), | |
$textarea = $tester.find("textarea"), | |
$letter_spacing = $("<input />", { | |
className: 'letter-spacing', | |
type: 'text', | |
id: "#ls", | |
value: "0.00" | |
}), | |
$ls_div = $("<div />",{ | |
text: "Tracking", |
NewerOlder