Skip to content

Instantly share code, notes, and snippets.

@sueszli
Last active August 8, 2023 23:47
Show Gist options
  • Save sueszli/fc6b6d3ba3fee9aaac98db00c60805ab to your computer and use it in GitHub Desktop.
Save sueszli/fc6b6d3ba3fee9aaac98db00c60805ab to your computer and use it in GitHub Desktop.
track your unused working hours in ep1
// open up "https://git.logic.at/.../stundenlisten/your_name.csv"
// then run this in your javascript console
const sum = Array.from(document.querySelectorAll('td:nth-child(3)'))
.map((cell) => parseFloat(cell.textContent.trim()) || 0)
.reduce((acc, val) => acc + val, 0)
const sws = sum / 25
console.log(`total: ${sum}h ⌛️ -- equivalent to ${sws} SWS (semester wochenstunden)`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment