View isotope-hash.js
1 2 3 4 5 6 7 8 9
function getHashFilter() {
var hash = location.hash;
// get filter=filterName
var matches = location.hash.match( /filter=([^&]+)/i );
var hashFilter = matches && matches[1];
return hashFilter && decodeURIComponent( hashFilter );
}
 
$( function() {
View billy-corgan-guitar-world.md

I'd like to begin this first installment of my new column with a statement: There is no right or wrong. What you read here represents just one person's views on the crazy, frustrating thing we call music. You have every right to disagree with me on any or every point—in fact, doing so will help to clarify your own point of view.

When it comes to guitar playing, the true judge of what's "good" and what's "bad" is the player himself. Some people say Frank Zappa, for example, was an awful guitarist. Others maintain he was a genius. Some people, like Steve Lukather, think I'm a terrible guitar player. Others disagree. The point is that everyone is entitled to his or her own opinion, and you shouldn't let someone else's taste influence you too much. (Although I would say that if "Hold The Line" was the best rock riff I'd ever written, I think I'd keep my mouth shut.)

Guitar playing, in and of itself, does not mean a whole heck of a lot. But guitar playing within the context of great music and great songs _i

View hashchange.js
1 2 3 4 5 6 7 8 9 10
filter
sortBy
sortAscending
 
 
 
 
var r20 = /%20/g;
 
function param( obj ) {
View img-load-masonry.js
1 2 3 4 5 6 7 8 9 10
// jQuery
$( function() {
 
$('.js-masonry.imgload').each( function( i, elem ) {
var $elem = $(elem).imagesLoaded( function() {
var attr = $elem.attr('data-masonry-options');
var options = attr && JSON.parse( attr );
$elem.masonry( options );
});
});
View questions.md

You are a 4' 6" Spud Web like basketball player. A 14' tall Manute Bol is defending you. Do you dunk over, or under him? Explain your rationale. Use the word "truelescent"

Your Led Zeppelin cover band is playing in the International Space Station. The drummer hits the crash. Does the symbol ever stop ringing? Do you know how to spell cymbal?

You are playing as a character with a 90 foot long pony tail in Tony Hawk Pro Skater 2. The end of your pony tail gets caught in a wheel. Do you start your truelescent trick with an olly or a grind?

You are riding a bike on a planet with a 50' diameter, with the half the gravity of earth. There is an 8' ramp. What is your escape velocity to orbit the planet?

You are being interviewed by a beautiful person who keeps using the word "truelescent." How do you use this word and figure out if its real in a response? You must maintain the interviewer's face.

View fit-columns-modify.js
1 2 3 4 5 6 7 8 9 10
// Modify fitColumns layout mode to not resize container
// and support percentage width items
var FitColumns = Isotope.LayoutMode.modes.fitColumns;
FitColumns.prototype._getContainerSize = function() {};
 
FitColumns.prototype.needsResizeLayout = function() {
// don't trigger if size did not change
var size = getSize( this.isotope.element );
if ( this.isotope.size && size ) {
return size.innerHeight !== this.isotope.size.innerHeight ||
View bowerrc-config.md

Configuration

The Bower configuration alters the behaviour of Bower on the local system.

The config is obtained by merging multiple configurations by this order of importance: [cli args via --config.*] environment variables local bowerrc located in the cwd all bowerrc files upwards the directory tree bowerrc file located in the home folder

View loop.js
1 2 3 4 5
for ( var _i = 0; _i < 10 * 10; _i++ ) {
var i = Math.floor( _i / 10 );
var j = _i % 10;
console.log(i, j);
}
View debounce.js
1 2 3 4 5 6 7 8 9 10
// Original by John Hann
// http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
function debounce( fn, threshold ) {
var timeout;
return function debounced() {
var _this = this;
var args = arguments;
if ( timeout ) {
View loader-dots.svg
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<!-- hand coded by David DeSandro like a bad ass luddite -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="80px" height="20px" viewBox="0 0 80 20">
<circle cx="10" cy="10" r="10" fill="#333" >
<animate attributeName="cx" from="10" to="40" dur="0.5s" calcMode="spline" keySplines="0.42 0 0.58 1" keyTimes="0;1" repeatCount="indefinite" />
</circle>
<circle cx="10" cy="10" r="0" fill="#333">
<animate attributeName="r" from="0" to="10" dur="0.5s" calcMode="spline" keySplines="0.42 0 0.58 1" keyTimes="0;1" repeatCount="indefinite" />
Something went wrong with that request. Please try again.