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
# Open applications | |
alias opentest='open "/Applications/Adium.app" && open "/Applications/Adobe Photoshop CC 2015/Adobe Photoshop CC 2015.app"' | |
# Close applications | |
alias closetest='osascript -e "quit app \"Adium\"" && osascript -e "quit app \"Adobe Photoshop CC 2015\""' |
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
gulp.task('sass', function() { | |
return gulp.src('assets/sass/**/*.scss') | |
.pipe(plumber(plumberOptions)) | |
.pipe(sass(sassOptions)) | |
.pipe(autoprefixer(autoprefixerOptions)) | |
.pipe(gulp.dest('assets/css')) | |
.pipe(filter(sassFilterOptions)) | |
.pipe(reload(sassReloadOptions)); | |
}); |
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
# _plugins/url_encode.rb | |
require 'liquid' | |
require 'uri' | |
# Percent encoding for URI conforming to RFC 3986. | |
# Ref: http://tools.ietf.org/html/rfc3986#page-12 | |
module URLEncode | |
def url_encode(url) | |
return URI.escape(url, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) | |
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
var $images = $("img[data-1x]"); | |
if (window.devicePixelRatio == 2) { | |
$.each($images, function() { | |
var $this = $(this); | |
$this.attr("src", $this.data("2x")); | |
}); | |
} else { | |
$.each($images, function() { |
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
require_once('Simple_HTML_DOM.php'); | |
$post_html = "<p>Some random sentence or whatever.</p> | |
<figure id='post-167550 media-167550' class='align-none'> | |
<img src='http://css-tricks.com/wp-content/uploads/2014/04/concept.png' alt='' /> | |
</figure> | |
<p>Another random sentence or whatever.</p> | |
<figure id='post-167550 media-167550' class='align-none'> | |
<img src='http://css-tricks.com/wp-content/uploads/2014/04/concept.png' width='500' height='200' alt='' /> |
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
function w(){ | |
if [ -e ~/projects/$1 ] | |
then | |
cd ~/projects/$1 | |
if [ "$1" != "" ] | |
then | |
echo -e "Switched to $1." | |
else | |
echo -e "Switched to project directory." | |
fi |
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
// Global Foundation Settings | |
@import "core/settings"; | |
// Comment out this import if you are customizing you imports below | |
// @import "foundation"; | |
// Import specific parts of Foundation by commenting the import "foundation" | |
// and uncommenting what you want below. You must uncomment the following if customizing | |
@import "foundation/components/global"; // *always required |
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
$(document).ready(function(){ | |
$(".anchorLink").click(function(e) { | |
e.preventDefault(); | |
anchorScroll( $(this), $($(this).attr("href")), 100 ); | |
}); | |
}); | |
function anchorScroll(this_obj, that_obj, base_speed) { | |
var this_offset = this_obj.offset(); |
This file has been truncated, but you can view the full file.
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
jsuh:/etc$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install php53-mcrypt | |
==> Installing php53-mcrypt dependency: php53 | |
==> Downloading http://www.php.net/get/php-5.3.22.tar.bz2/from/this/mirror | |
Already downloaded: /Library/Caches/Homebrew/php53-5.3.22 | |
tar xf /Library/Caches/Homebrew/php53-5.3.22 | |
==> Downloading patches | |
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.3) https://raw.github.com/gist/4222668/923819a243f3b6fefb79471671dbc8baff6e72b7/Makefile.global.diff -o 000-homebrew.diff | |
######################################################################## 100.0% | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff |
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
.js-gads { | |
overflow: hidden; | |
} |