sudo nano /opt/vscodium/resources/app/out/vs/workbench/workbench.desktop.main.css* {text-spacing-trim: space-all !important;}sudo nano /opt/vscodium/resources/app/out/vs/workbench/workbench.desktop.main.css* {text-spacing-trim: space-all !important;}| const crypto = require('crypto'); | |
| function renum(num, key) { | |
| // Convert the number to a string | |
| const numStr = String(num); | |
| const len = numStr.length; | |
| // Hash the string using SHA-256 | |
| const hash = crypto.createHash('sha256'); | |
| const hashedNum = hash.update(numStr, 'utf8').digest('hex').slice(0, len + 2); |
| \documentclass[a4paper,12pt]{article} | |
| \usepackage[a4paper,landscape,textwidth=50em,tmargin=24mm,bmargin=24mm]{geometry} | |
| \usepackage{calc} | |
| \usepackage[PunctStyle=plain,RubberPunctSkip=false,CJKglue=,CJKecglue=\hskip 4pt plus 20pt]{xeCJK} | |
| \setlength{\parindent}{0pt} | |
| \setlength{\parskip}{7pt} | |
| \pagestyle{empty} | |
| \begin{document} |
| // ImgMultiSrcLoader.js | |
| // Usage: | |
| // <img src="1.png" data-multi-src="1.png 2.png https://example.com/3.png"> | |
| window.addEventListener('load', function () { | |
| document.querySelectorAll('img[data-multi-src]').forEach(function (img) { | |
| const srcArr = img.getAttribute('data-multi-src').split(' '); | |
| srcArr.forEach(function (src) { | |
| const xhr = new XMLHttpRequest(); | |
| xhr.addEventListener('load', function (e) { |