Skip to content

Instantly share code, notes, and snippets.

View seeflanigan's full-sized avatar

Cory Flanigan seeflanigan

View GitHub Profile
def attrs
@attrs ||= Reading.new.attributes.keys.take(5).last(4)
end
def data
@data ||= File.read("tmp/output_small_test.csv")
end
def rows
data.split()
@seeflanigan
seeflanigan / fix-func-name-errors.sh
Created December 8, 2016 21:37
`sed` onelines to fix `func-name` errors in `ESLint` per `airbnb/legacy` rules
#!/usr/bin/env bash
# Use cases
#
# Anonymous function expressions assigned by `=` operator to a variable:
# (with and without arguments)
#
# const aFunc = function () {};
#
# Anonymous function expressions declared as a property of an object: