xtodo JavaScript js
JavaScript
- 2021-11-26 add how to add a style sheet on the page. See also: JS: Change CSS. look at the code for unicode search.
- 2021-04-09 write a interactive converter Unicode: Full-Width Characters
- 2021-04-09 write a interactive JavaScript to compute bigram chart. What is the Most Efficient Keyboard Layout?
- tutorial going over all JavaScript warts Xah JavaScript Style Guide for Functional Programers
- 2023-10-31 node.attributes JavaScript
Georrg, 11/03/2022 @XahLee standard library has walk and walkSync functions
- async: https://deno.land/std@0.162.0/fs/walk.ts?s=walk
- sync: https://deno.land/std@0.162.0/fs/walk.ts?s=walkSync
import { walkSync } from "https://deno.land/std@0.162.0/fs/walk.ts"; for (const entry of walkSync(".")) { console.log(entry.path); }
- 2022-09-26 JS: JSON.stringify, doc optional args
- 2022-09-26 JS: JSON.parse , doc optional args
- 2022-08-21 test innerText , and also more study on nodeValue DOM: textContent, innerHTML, innerText, nodeValue
- 2022-09-04 update jQuery Selector vs DOM querySelectorAll
- 2022-09-04 review DOM: textContent, innerHTML, innerText, nodeValue
- 2022-09-04 JavaScript Java class model vs JavaScript class model
- 2022-09-02 JavaScript maybe delete any mention of βalso is a Iteratorβ
- 2022-08-31 group the object properties JS: Object.keys
- Difference Between Implied Global and True Global Variable JS: Global Variable
- 2022-10-14 write a
xah_is_map_equal
andxah_is_set_equal
- 2022-07-28 JS: Symbol.prototype
- 2022-07-28 JS: String.raw
a TypeScript and deno problem
- // The problem. Save this as x.ts, then call deno run x.ts
- // You get the error , shown in the other pane
- // deno wants u to add typescript types, but the problem is, can't do it unless perhaps most of the types is any, or u mod the code so it have if statement to catch impractical errors such as out of bound index, empty string, etc
- // The question is, how do u add type declaration, without changing ur code to add silly impractical error catching
const fCharStrToId = ((x) => x.codePointAt(0)); const fCharIdToStr = ((x) => (String.fromCodePoint(x))); console.log(fCharStrToId("π"));
- 2022-03-26 JavaScript obfusticate my unicode search code https://github.com/javascript-obfuscator/javascript-obfuscator
- JavaScript deno walk dir https://deno.land/std@0.135.0/fs#expandglob
- 2022-03-14 JS: Symbol Object need complete
- need list of all unicode properties JS: RegExp Unicode Property
- 2022-02-19 add how to use python to do it What Characters Are Unicode Letter β’ Python: Get Unicode Name, Codepoint β’ Python: Unicode Tutorial π
- 2022-01-11 JavaScript svg, need to rewrite Emacs Key Layout Diagram
- 2021-12-17 JavaScript, write a syntax highlight. start perhaps for elisp. just do simple word highlight. use regex. highlight vars if possible. highlight comment. possibly even ignore string.
- 2021-05-20 . write JavaScript svg keyboard diagram
- write a js to generate keyboard svg diagram
- ;; 2022-04-03 There's a new notation for key, based on finger.
- ;; For example the qwerty e key is Lp2p1.
- ;; The notation is like this: [left or rigt hand][column number][row number].
- ;; L means left hand, R means right hand
- ;; Column position, pointing finger is 1, index is 2, ring finger is 3, pinky is 4, and so on in that direction. Thumb is 0. In the thumb direction is -1, -2 etc.
- ;; Row position, home row is 0. Above is 1, below is -1.
- ;; Positive number are written with p in front. Eg p1, p2. Zero is p0. Negative can be written with n in front, eg n1, n2.
- ;; This system is a notation system for keyboard physical layout, which also indicates associated finger for that key.
- ;; The advantage is that it's a logical system, not based on arbitrary table lookup.
- ;; Qwerty, dvorak, etc can then be mapped to this logical system.
- a text diagram of letter layout map to fingerposition
- qwerty letter map to fingerposition
- dvorak letter map to fingerposition
- fingerposition map to center of key
- 2021-11-15 create keyboard layout JavaScript
- layout draw
- Xah Talk Show Keyboard Heatmap JavaScript + SVG
- Xah Talk Show 2020-09-26 JavaScript live coding keyboard layout heatmap