I hereby claim:
- I am willdavidow on github.
- I am wdavidow (https://keybase.io/wdavidow) on keybase.
- I have a public key ASAdyfwVUQenTzRYvEjSmoJC0d7mCelW78Kdi0_hpOD73Ao
To claim this, I am signing this object:
/* | |
* Accordion functionality | |
*/ | |
const accordion = (() => { | |
const COLLAPSED = '0'; | |
const EXPANDED = '1'; | |
let curItem; | |
let prevItem; | |
let items; |
//var csv is the CSV contents with headers | |
function csvJSON(csv){ | |
var lines=csv.split('\n'); | |
var result = []; | |
var headers=lines[0].split(','); | |
lines.splice(0, 1); | |
lines.forEach(function(line) { |
// Determine if an element is in the visible viewport | |
function isInViewport(element) { | |
var rect = element.getBoundingClientRect(); | |
var html = document.documentElement; | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || html.clientHeight) && | |
rect.right <= (window.innerWidth || html.clientWidth) | |
); |
// Array merge function. Credit: Kyle Simpson - https://github.com/getify. Link: https://davidwalsh.name/combining-js-arrays | |
export const arrayMerge = (head, tail) => { | |
return tail.reduce( (coll, item) => { | |
coll.push(item); | |
return coll; | |
}, head); | |
}; |
I hereby claim:
To claim this, I am signing this object:
# SMACSS Property Order | |
# http://smacss.com/book/formatting | |
# Box | |
display | |
position | |
top | |
right | |
bottom |
"=============================================================================================================== | |
" Will Davidow: (N)VIM(R) Configuration. | |
"=============================================================================================================== | |
set nocompatible " disable vi compaibility mode | |
filetype off " required | |
" default settings | |
"=============================================================================================================== |