• Blog: https://2ality.com
My main account is on Mastodon (you can follow via RSS): https://fosstodon.org/@rauschma
Comes up regularly in my JS code. I loved having this feature when I wrote Go code—e.g. (stmt+expr!):
if match, _ := re.FindStringMatch(str); match != nil {…}
Comes up regularly in my JS code. I loved having this feature when I wrote Go code—e.g. (stmt+expr!):
if match, _ := re.FindStringMatch(str); match != nil {…}
Comes up regularly in my JS code. I loved having this feature when I wrote Go code—e.g. (stmt+expr!):
if match, _ := re.FindStringMatch(str); match != nil {…}
Comes up regularly in my JS code. I loved having this feature when I wrote Go code—e.g. (stmt+expr!):
if match, _ := re.FindStringMatch(str); match != nil {…}
A. More complicated file system structure
B. Two URLs for same file
A. More complicated file system structure
B. Two URLs for same file
> document.cookie = 'k=v1; k=v2'
> document.cookie
"k=v1"
> document.cookie = 'k=v1; k=v2'
> document.cookie
"k=v1"
• If a heading has an ID then a heading self-link goes to that ID.
• Otherwise, a text fragment link is used.
Even with text fragment links I still often use the heading self-links on GitHub, Wikipedia, my blog, …
• If a heading has an ID then a heading self-link goes to that ID.
• Otherwise, a text fragment link is used.
Even with text fragment links I still often use the heading self-links on GitHub, Wikipedia, my blog, …
• Mode toggles (dark mode, light mode, print mode, …)
• Self-links for headings
• Cookie dialogs (with a default choice that can be triggered automatically)
• Mode toggles (dark mode, light mode, print mode, …)
• Self-links for headings
• Cookie dialogs (with a default choice that can be triggered automatically)
• Mode toggles (dark mode, light mode, print mode, …)
• Self-links for headings
• Cookie dialogs (with a default choice that can be triggered automatically)
• Mode toggles (dark mode, light mode, print mode, …)
• Self-links for headings
• Cookie dialogs (with a default choice that can be triggered automatically)
• Helpful: “Please Don't Use JSON Web Tokens for Browser Sessions” by Ian London. ianlondon.github.io/posts/dont-u...
• By default, fetch() sends *and* receives cookies—which means you can use it to log in if session tokens are stored in HTTP-only cookies.
• Helpful: “Please Don't Use JSON Web Tokens for Browser Sessions” by Ian London. ianlondon.github.io/posts/dont-u...
• By default, fetch() sends *and* receives cookies—which means you can use it to log in if session tokens are stored in HTTP-only cookies.