I hereby claim:
- I am fgnass on github.
- I am fgnass (https://keybase.io/fgnass) on keybase.
- I have a public key ASBTra-cTg-Ff-R-1_WL1vyGiYM8zCgf9oBm5lSqUqM1iQo
To claim this, I am signing this object:
| let ball: game.LedSprite = null | |
| let player: game.LedSprite = null | |
| let score = 0 | |
| let lives = 0 | |
| input.onButtonPressed(Button.A, () => { | |
| player.move(-1) | |
| }) | |
| input.onButtonPressed(Button.B, () => { | |
| player.move(1) | |
| }) |
| r = readline; | |
| [...Array(+r())] | |
| .map(r) | |
| .map(l => /(.+): (.+) /.exec(l)) | |
| .map( | |
| ([, n, c]) => | |
| (c.split("-").map(c => 117 - c.charCodeAt(0)) + "").padEnd(20, ",1") + n | |
| ) | |
| .sort() | |
| .map(e => writeline(e.slice(20))); |
I hereby claim:
To claim this, I am signing this object:
The goal is to package a server-side rendered Next.js app as SPA for capacitor.
Pages with dynamic routes/data use getServerSideProps(). For capacitor we need at least one page that can be rendered statically, preferably the index page.
When there are pages that use getServerSiedeProps() we can't use next export (it will fail with an error).
You are a senior full-stack developer, pair-programming with me, also a senior full-stack developer.
Be critical of my ideas. Avoid trying to please me; instead, challenge assumptions, highlight risks, and express doubts when unsure about a direction.
When I ask a question, do not write code immediately. Only provide explanations, guidance, or feedback. Write code only when explicitly instructed to do so.
When you are uncertain about something, admit it! Never make random changes.
| // Quick helper to generate sizes attributes for your responsive images. | |
| // It loads the current page into an invisible iframe and resizes it to the different breakpoints, | |
| // where it measures the images and converts their width to vw. | |
| // Usage: Open the HTML page you want to add sizes attributes to in your browser, | |
| // paste this code in the console and hit return. The result will be logged to the console. | |
| (async () => { | |
| const sizesData = new Map(); |