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
<h1>PictureFill 2 Upgrade</h1> | |
<p> | |
Upgrading to PictureFill 2 lets us take advantage of native functionality in | |
modern browsers for responsive images. This is critical for performance | |
because it uses browser the preloader rather than waiting for JS to parse | |
the source. Older browsers will still work with JS, but with some limitations | |
because of the leaner fallback for modern browsers to work efficiently. | |
</p> |
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
Requirement already satisfied (use --upgrade to upgrade): ansible in /Library/Python/2.7/site-packages | |
Requirement already satisfied (use --upgrade to upgrade): paramiko in /Library/Python/2.7/site-packages (from ansible) | |
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /Library/Python/2.7/site-packages (from ansible) | |
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /Library/Python/2.7/site-packages (from ansible) | |
Downloading/unpacking pycrypto>=2.1,!=2.4 (from paramiko->ansible) | |
Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded | |
Running setup.py (path:/private/tmp/pip_build_root/pycrypto/setup.py) egg_info for package pycrypto | |
Downloading/unpacking ecdsa (from paramiko->ansible) | |
Downloading ecdsa-0.11.tar.gz (45kB): 45kB downloaded |
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
<div class="xx"> | |
<img src="http://placehold.it/1250x600" alt="#" /> | |
<div class="yy"> | |
<div class="zz"> | |
Nulla facilisi. Duis aliquet egestas purus in blandit. Curabitur | |
vulputate, ligula lacinia scelerisque tempor, lacus lacus ornare | |
ante, ac egestas est urna sit amet arcu. | |
</div> | |
</div> |
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
<div class="flex-test"> | |
<p class="flex-test-item">Nulla facilisi. Duis aliquet egestas purus in blandit. Curabitur vulputate, ligula lacinia scelerisque tempor.</p> | |
<p class="flex-test-item">Nulla facilisi. Duis aliquet egestas purus in blandit. Curabitur vulputate, ligula lacinia scelerisque tempor. ligula lacinia scelerisque tempor. ligula lacinia scelerisque tempor.</p> | |
<p class="flex-test-item">Nulla facilisi. Duis aliquet egestas purus in blandit. Curabitur vulputate, ligula lacinia scelerisque tempor.</p> | |
<p class="flex-test-item">Nulla facilisi. Duis aliquet egestas purus in blandit. Curabitur vulputate, ligula lacinia scelerisque tempor.</p> | |
</div> | |
<style> | |
.flex-test { | |
display:flex; |
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 elem = $('.selector'); | |
elem.on('click', function (e) { | |
var callbackName = $(this).data('callback'); | |
if ($.isFunction(window[callbackName])) { | |
window[callbackName].call(this); | |
} | |
}); |
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
############################ | |
# Basic usage | |
############################ | |
cd path/to/project | |
# One file type: | |
# Replace "red rover" with "black dog" in PHP files |
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 cachedContentHtml = ''; | |
window.setInterval(function() { | |
var watchElem = $('.watch-me'); | |
// Check if "element" exists in DOM yet | |
if ( watchElem.length ) { | |
// Grab the content we need | |
var contentHtml = $('.content').html(); |
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
function gravdept_next(elem) { | |
do { | |
elem = elem.nextSibling; | |
} while (elem && elem.nodeType != 1); | |
return elem; | |
} | |
function gravdept_toggle(elem) { | |
var nextElem = gravdept_next(elem); | |
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
/* for Twitter JSON request */ | |
function linkify (text) { | |
var exp = /(\b(https?|mailto):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; | |
return text.replace(exp,"<a href='$1'>$1</a>"); | |
} | |
/* jQuery start */ | |
$(document).ready(function(){ |