Skip to content

Instantly share code, notes, and snippets.

View j-f1's full-sized avatar
🥁
Instruments/profiling tools @apple

Jed Fox j-f1

🥁
Instruments/profiling tools @apple
View GitHub Profile
@j-f1
j-f1 / README.md
Last active April 17, 2017 10:48
babel-plugin-inline-array-methods

Inline Array Methods

A Babel plugin to inline methods on array literals.

Warning: If you have getters on objects in arrays, this could be lossy.
Example:

const x = { get a () { someSideEffect(); return 2 } };
[x.a].length;
// transforms to
@j-f1
j-f1 / sticky.css
Last active February 23, 2017 13:55
Make all kinds of things stick to the edges of the screen on GitHub
.file-header,
.discussion-sidebar,
.dashboard-sidebar,
.comment-reactions,
/* .commit-tease, */
.review-thread-reply,
.user-profile-repo-filter,
.timeline-comment-header,
#wiki-rightbar,
.table-list-header,