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
{ | |
"organizations": [ | |
"org-mno" | |
], | |
"hist_parameters": { | |
"from": "2015-08-01", | |
"to": "2015-09-29", | |
"period": "MONTHLY" | |
}, | |
"dates": [ |
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
{ | |
"organizations": [ | |
"org-mno" | |
], | |
"hist_parameters": {"from": "2015-08-01", "to": "2015-09-29", "period": "MONTHLY"}, | |
"dates": [ | |
"2015-08-31", | |
"2015-09-29" | |
], | |
"account_list": [ |
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
class Stopwatch | |
def initialize | |
@start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) | |
end | |
def elapsed_time | |
Process.clock_gettime(Process::CLOCK_MONOTONIC) - @start_time | |
end | |
end |
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
const getDomPath = node => { | |
const stack = []; | |
let el = node; | |
while (el.parentNode != null) { | |
let siblingCount = 0; | |
let siblingIndex = 0; | |
for (let i = 0; i < el.parentNode.childNodes.length; i += 1) { | |
const sib = el.parentNode.childNodes[i]; | |
if (sib.nodeName === el.nodeName) { |