Skip to content

Instantly share code, notes, and snippets.

@idomitori
idomitori / index.js
Created July 7, 2021 13:55
Parse simracing.gp results table into CSV file
(() => {
function parseTable(tableSelector = 'table') {
const tableElement = document.querySelector(tableSelector);
const rows = tableElement.querySelectorAll(`tr`);
const table = Array.from(rows).map((row) => {
const cols = row.querySelectorAll('td');
return Array.from(cols).map((col) => col.innerText);
});
return table;
}

Keybase proof

I hereby claim:

  • I am idomitori on github.
  • I am mattdev (https://keybase.io/mattdev) on keybase.
  • I have a public key ASD_25nWoDVe2MjwFfT3PmaNEa3MbH231LI2hxvomZnwCwo

To claim this, I am signing this object:

/* Resources:
- https://hankchizljaw.com/wrote/a-modern-css-reset/
*/
/* Remove delay from tapping on clickable elements */
a,
area,
button,
input,
label,
@idomitori
idomitori / aria-cursor-styles.css
Last active October 16, 2019 19:48
Some useful things that I'm use not really often, but i want to keep it in one place instead of googling them every time i need it.
/* ref: https://codepen.io/HannahF/pen/wMNVbr */
/* specify the progress cursor of updating elements */
[aria-busy="true"] {
cursor: progress;
}
/* specify the pointer cursor of trigger elements */
[aria-controls] {
cursor: pointer;