Could you point out any grammatical errors or instances of awkward or unnatural phrasing I’ve made in this conversation? Please skip minor typos that result in non-existent words, but do let me know if I’ve used the wrong word entirely. Please format the feedback with the original and corrected versions on separate lines, and bold the differences.
This file contains hidden or 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 nowTS = Date.now(); | |
const archiveDate = document.location.href.match(/web.archive.org\/web\/([0-9]+)/); | |
if (archiveDate) { | |
const c = archiveDate[1].match(/(....)(..)(..)(..)(..)(..)/); | |
const d = new Date(`${c[1]}-${c[2]}-${c[3]}T${c[4]}:${c[6]}:${c[6]}Z`); | |
nowTS = d.getTime(); | |
} | |
const ageSpans = document.querySelectorAll('.age[title]'); | |
const data = Array.from(ageSpans).map( |
This file contains hidden or 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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1655563812" LAST_MODIFIED="1691227111" PERSONAL_TOOLBAR_FOLDER="true">Favourites bar</H3> | |
<DL><p> |
This file contains hidden or 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
javascript: (() => { | |
let doPrompt = true; | |
let promtLabel = ''; | |
let promptValue = '%s'; | |
if (promptValue == '\u0025s') { | |
promtLabel = 'Eval:'; | |
promptValue = '/* Expression like */ 1 + 1'; | |
} else { | |
doPrompt = false; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
See [base64-png], [SVG-in-HTML].
[base64-png]:
I'm not sure such question belongs on SO, before mods will chime in, welcome and have a couple of remarks:
This could save some duplicate positions. Instead of checkboxes and state tree, you can merge identical positions into single one and switch them like
<style>div:not(:target){display:none}</style>
<a href="#s00">start</a>
<div id="s00"><a href="#s01">1</a></div>
This file contains hidden or 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
[ | |
[ | |
106.69999694824219, | |
"﷽", | |
65021 | |
], | |
[ | |
74.19999694824219, | |
"𒐫", | |
74795 |
This file contains hidden or 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
<html> | |
<body> | |
<style> | |
.month { | |
--unit: 1.25rem; | |
padding-left: calc(var(--firstWeekDay) * var(--unit)); | |
} | |
.day { | |
display: inline-block; | |
width: var(--unit); |
This file contains hidden or 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
function stringToCodePoints (string) { | |
function charToCodePoint (char) { | |
// "brute-force" | |
let codePoint = 0; | |
while (char !== String.fromCodePoint(codePoint)) { | |
// will throw for codePoint exceeding legal range | |
++codePoint; | |
} | |
return codePoint; | |
}; |