Skip to content

Instantly share code, notes, and snippets.

Jed Fox j-f1

Block or report user

Report or block j-f1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@j-f1
j-f1 / install-charcoal-scripts.js
Last active Aug 8, 2018
Temporarily install various Charcoal userscripts on a chat page
View install-charcoal-scripts.js
load(
'https://charcoal-se.org/userscripts/vendor/debug.min.js',
[
'https://cdn.rawgit.com/joewalnes/reconnecting-websocket/fd7c819bb15eeee3452c17e317c0a3664c442965/reconnecting-websocket.min.js',
'https://charcoal-se.org/userscripts/autoflagging/autoflagging.user.js'
],
'https://charcoal-se.org/userscripts/fire/fire.user.js',
[
'https://charcoal-se.org/userscripts/vendor/actioncable.min.js',
'https://charcoal-se.org/userscripts/sds/sds.user.js'
@j-f1
j-f1 / accounts.md
Last active Dec 29, 2018
My various accounts “around the web”
View accounts.md
@j-f1
j-f1 / eslint-rule-sort-imports-by-length.js
Created Aug 9, 2017
Require sorting imports by length
View eslint-rule-sort-imports-by-length.js
export default function(context) {
const fileSource = context.eslint.sourceCode.text
return {
ImportDeclaration(node) {
const idx = node.parent.body.indexOf(node)
const line = node.loc.start.line
if (idx > 0) {
const prevNode = node.parent.body[idx - 1]
if (line - prevNode.loc.end.line < 2) {
@j-f1
j-f1 / shrink-footer.css
Last active Jun 28, 2017
Shrink the Stack Exchange footer — https://stackapps.com/q/7091/34727
View shrink-footer.css
@j-f1
j-f1 / .hyper.js
Created Jun 9, 2017
Hyper settings
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@j-f1
j-f1 / babel-plugin-add-bunyan-metadata.js
Last active May 7, 2017
Add Bunyan source metadata at compile-time without the performance hit
View babel-plugin-add-bunyan-metadata.js
export default function (babel) {
const { types: t } = babel;
return {
visitor: {
CallExpression(path) {
if (!t.isMemberExpression(path.node.callee)
|| path.node.callee.object.name !== 'log') {
return
}
@j-f1
j-f1 / README.md
Last active Apr 17, 2017
babel-plugin-inline-array-methods
View README.md

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 / keybase.md
Created Feb 13, 2017
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am j-f1 on github.
  • I am j_f (https://keybase.io/j_f) on keybase.
  • I have a public key ASDP4ZOty1cZs_hiUV3tHl-AUC_crezmEtI9y4RQKbf1qgo

To claim this, I am signing this object:

@j-f1
j-f1 / sticky.css
Last active Feb 23, 2017
Make all kinds of things stick to the edges of the screen on GitHub
View sticky.css
.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,
You can’t perform that action at this time.