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 time_parser(input: string): number { | |
/** | |
* @name time_parser | |
* @description Parses a string of time into a number of seconds | |
* @param {string} input - String of time to parse | |
* | |
* @return {number} - Number of seconds | |
*/ | |
let total_seconds = 0; | |
const times: { [index: string]: number } = { |
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
from typing import Any, List, Optional | |
def make_table(rows: List[List[Any]], labels: Optional[List[Any]] = None, centered: bool = False) -> str: | |
""" | |
hi | |
:param rows: 2D list containing objects that have a single-line representation (via `str`). | |
All rows must be of the same length. | |
:param labels: List containing the column labels. If present, the length must equal to that of each row. | |
:param centered: If the items should be aligned to the center, else they are left aligned. |