View round-svg.js
var paths = document.querySelectorAll('path')
for ( var i=0; i < paths.length; i++ ) {
var path = paths[i];
var d = path.getAttribute('d');
// 10.2.3 -> 10.2 0.3
d = d.replace( /(\d\.\d)\.(\d)/g, function( match, $1, $2 ) {
return $1 + ' 0.' + $2
});
// round numbers
View conditionals.js
// Get 1st, 2nd, 3rd, 4th, from 1, 2, 3, 4
// ignoring 11, 12, 13 for demo
// using conditionals
function suffixDate( date ) {
var lastDigit = date % 10;
if ( lastDigit == 1 ) {
return date + 'st';
} else if ( lastDigit == 2 ) {
return date + 'nd';
View good-code.md

I've been struggling to come up with a good answer to this question: What is good code?

Programming is such a technical subject. It appears to be something you can definitively analyze. But when I think about it through this question, programming seems entirely subjective.

I know good code can be readable, terse, eloquent, standardized, innovative. But it can't be just one of these qualities.

Good code can be highly stylized — utilizing nuanced patterns rarely seen elsewhere. Or good code can be highly structured — following strict guidelines and established conventions. Bad code can be either as well.

I think the answer to "What is good code?" is that there is no answer. You can't put it in words. Like asking "What makes a joke funny?"

View inverted-lamp.md

Ask Reddit: Have you ever felt a deep personal connection to a person you met in a dream only to wake up feeling terrible because you realize they never existed?


throw away account cause this is really personal.

My last semester at a certain college I was assulted by a football player for walking where he was trying to drive (note he was 325lbs I was 120lbs), while unconscious on the ground I lived a different life.

I met a wonderful young lady, she made my heart skip and my face red, I pursued her for months and dispatched a few jerk boyfriends before I finally won her over, after two years we got married and almost immediately she bore me a daughter.

View doc-ready.js
function docReady( onReady ) {
if ( document.readyState == 'complete' ) {
onReady();
return;
}
document.addEventListener( 'DOMContentLoaded', onReady );
}
View 2015-11-18-bower-alive-looking-contributors.md

Bower is alive, looking for contributors

Hello world!

Bower turned three years old last September. That may make Bower old in JavaScript terms, but Bower is still kicking. 2015 has seen 9 releases already, included two minor releases, with v1.6 releases shipping last month. Looking at the stats, Bower usage continues to grow. Bower is more popular now than ever. That's why we're stepping up.

I'll be real: We have not done a good job of managing the project. Ever since its release, Bower's management has always been one of its pain-points. There is an ideal that a great open-source project will create a healthy community around it. I've come to learn it's the other way around. In order to best support Bower, we need to foster its community. We want to fix this.

We are looking for contributors. Bower can use your help:

View debounce.js
function debounce( fn, threshold ) {
var timeout;
return function() {
clearTimeout( timeout );
var args = arguments;
var _this = this;
timeout = setTimeout( function() {
fn.apply( _this, args );
}, threshold || 100 );
}
View isotope-hash.js
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
filter
sortBy
sortAscending
var r20 = /%20/g;
function param( obj ) {