Skip to content

Instantly share code, notes, and snippets.

View cointilt's full-sized avatar
🍣
West Coast Keto!

Will Ayers cointilt

🍣
West Coast Keto!
View GitHub Profile
@murtaugh
murtaugh / 1. single-line.html
Last active April 21, 2021 16:23
Blockquote patterns for ALA
<figure class="quote">
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote>
</figure>
@nathansmith
nathansmith / gist:4354237
Last active December 10, 2015 00:49
Utility function for checking if something exists.
// Check existence
function exists(thing) {
return (!isNaN(thing) && typeof thing !== 'undefined' && thing !== null) ? thing : undefined;
}
// Or, more tersely
function exists(thing) {
// != checks `null` and `undefined`
return thing != null ? thing : undefined;
}