This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
handleAddListener('load', getTiming) | |
function handleAddListener(type, fn){ | |
if(window.addEventListener){ | |
window.addEventListener(type, fn) | |
}else{ | |
window.attachEvent('on' + type, fn) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I wrote this file in order to reverse the result from https://gist.github.com/aherve/3c958b02c8262e64e0873f05377129f1 | |
const expand = (array, eachGroupSize) => { | |
return array.reduce((acc, item, index) => { | |
index % eachGroupSize === 0 ? acc.push([]) : null | |
acc[acc.length - 1].push(item) | |
return acc | |
}, []) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-07-15T06:14:16.679Z","extensionVersion":"v3.4.3"} |