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
/* | |
* Original problem with code | |
*/ | |
/* Definition */ | |
struct algae_position { | |
int x; | |
int y; | |
}; |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
let sumVotes = () => Array.from(document.querySelector('.participants-ul').childNodes).filter(el => el.getAttribute('aria-label').includes('hand raised')).map(el => Number(el.getAttribute('aria-label').match(/\d+/)[0])).reduce((acc, curr) => acc + curr, 0) |
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
document.querySelectorAll('img[alt]:not([alt=""])') | |
.forEach(img => { | |
const alt = document.createElement('p') | |
alt.innerText = img.getAttribute('alt') | |
alt.className = 'image-alt-text' | |
img.after(alt) | |
}) |