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 isValid(s) { | |
var stack = []; | |
var rightChars = [')', '}', ']']; | |
for (var i = 0; i < s.length; i++) { | |
var curr = s[i]; | |
if (stack.length > 0 && isInArray(curr, rightChars)) { | |
var top = stack.pop(); | |
if (curr === ')' && top !== '(') return false; | |
if (curr === ']' && top !== '[') return false; |
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
<a href="#" class="menu-icon"> | |
<div class="line"></div> | |
</a> |
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
// Execute this code on https://www.strava.com/athlete/training | |
// Might have to edit row.children indices depending on what's in your table | |
let rows = document.getElementsByClassName('training-activity-row') | |
function timeToNumber(timeString) { | |
let parts = timeString.split(':'); | |
let minutes = 0; | |
let hours = 0; | |
let seconds = 0; | |