I hereby claim:
- I am voltrevo on github.
- I am voltrevo (https://keybase.io/voltrevo) on keybase.
- I have a public key ASBi6AfkwLtxJNhhHWo0HtCatNDoo3i5Fx7_Nzn1xSXbKgo
To claim this, I am signing this object:
| <script> | |
| window.addEventListener('load', () => { | |
| const heading = unescape(location.search.slice(1)); | |
| document.title = heading; | |
| const h1 = document.createElement('h1'); | |
| h1.style.width = '100%'; | |
| h1.style.textAlign = 'center'; | |
| h1.textContent = heading; | |
| document.body.appendChild(h1); | |
| }); |
| 'use strict'; | |
| const rows = Array.prototype.slice.apply( | |
| document.querySelectorAll('.js-file-line') | |
| ); | |
| const code = rows | |
| .map(el => | |
| el.innerHTML | |
| .replace(/<[^>]*>/g, '') |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| Hello World! | |
| </body> | |
| </html> |
I hereby claim:
To claim this, I am signing this object:
| 'use strict'; | |
| (async () => { | |
| const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); | |
| const vid = document.createElement('video'); | |
| vid.srcObject = stream; | |
| document.body.appendChild(vid); | |
| vid.style.position = 'absolute'; | |
| vid.style.left = '0px'; |
| 'use strict'; | |
| (async () => { | |
| const stream = await navigator.mediaDevices.getUserMedia({ video: true }); | |
| const vid = document.createElement('video'); | |
| vid.srcObject = stream; | |
| document.body.appendChild(vid); | |
| vid.style.position = 'absolute'; | |
| vid.style.left = '0px'; | |
| vid.style.top = '0px'; |
| /------------------------------------------------------------------------------------------------------------\ | |
| | high isolation | partial isolation / uses part of the system | uses the full system | | |
| |------------------------+----------------------------------------------------+------------------------------| | |
| | | | | | |
| | | Not unit tests, so they're integration tests? | | | |
| | DEFINITELY | Not integration tests, so they're unit tests? | DEFINITELY | | |
| | UNIT TESTS | Maybe these tests are forbidden? | INTEGRATION TESTS | | |
| | | Maybe these tests aren't useful? | | | |
| | | Or maybe they're not possible? | | | |
| | |
| 'use strict'; | |
| export default function mapcat(elements, fn) { | |
| return (function* () { | |
| for (const el of elements) { | |
| for (const newEl of fn(el)) { | |
| yield newEl; | |
| } | |
| } | |
| })(); |
| (async function() { | |
| let headHTML = document.head.innerHTML; | |
| await Promise.all( | |
| Array.from(document.head.querySelectorAll('link[rel=stylesheet]')) | |
| .map(el => fetch(el.href) | |
| .then(res => res.text()) | |
| .then((cssTxt) => { | |
| headHTML += `<style>\n${cssTxt}\n</style>`; | |
| }) |