View calebs-first-code.txt
uijjkjn bnnbbv 7nbgn7uy8mh vb hx vghb Z bv VB Aszxsew2W
sxez3w axzas bf71b 1vfu1ch bc bgb7nvi 76r g `cxzfbc cv
dfgv n 1 2q1
View penrose.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View elephant.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 );
}