This file contains 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 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 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 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 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
✅ http://www.designernews.co/ | |
✅ http://designernews.co/ | |
✅ https://www.designernews.co/ | |
🚫 https://designernews.co/ |
This file contains 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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
$social: ( | |
facebook: #3b5998, | |
twitter: #55acee, | |
); |
This file contains 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
killall Finder |
This file contains 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
.HeartAnimationContainer .HeartAnimation { | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAC1QAAABkCAYAAAA7MJAoAABZBElEQVR42uzBAQEAAACAkP6v7ggCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXYuXuWKOAAjuP/paF3UO8gaAwJ90Ck1E49HygDL+ye8s5DF0kzMJCgGhxssMDFoRIqbPAp7zofwG5IaqkhagjaImhw/LdF0VbQqXw+b+G7/vjB/1cb6i4F9ECLA2B9dKBxdTTTGNg3VooXCwE9AAAAAAAAONzK7Q3HNy+dGd9OnDoW0IM/7PQ3na/1NyUCeqCHHmhxIJWLPaXHY6W4UuwbCeiBFvvccr6nupTvrQUAAAAAAADgcKukmi9UU83dgX1ha2JwrHItG7duDE4F9OA3cebOkZXJkXfLk8Mf9+5PHw3ogR56oMWB8yLd9nAp0/t5NZ1YDOiBFgAAAAAAAGDAS71VryYbXuaTn6r55PeNwa7Tgbp6kz53Ynm88PXB1ERcvD60t5vvOBnQg582My0L86Urca6Uj+V060JAD/TQAy0AAAAAAAAAAANe/sX2zeHF5zN349PpW3Hr9lg5UFeb2bbdR/2tca5QjPOpZKykW14H9ODX177b5Wzn20q2+/1auu1eQA/00AMtAAAAAAAAAMAbsgEvf2sn3dK+lOv6NltIxdnC5fgk1xtrA2c7AnWznkmkKrn2D6+G+p5t5Dq/rGUShYAeAAAAAMAP9u7npek4juP4hyAo+gfqTwi6RZDUSQJbufS7NbdpTTfS77bvvvsqbaBpP0AhITyUUIc6pUZ |
This file has been truncated, but you can view the full file.
This file contains 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 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(); |
OlderNewer