Can you read the text in the video? You'll need to actually play it.
I uploaded the video to Claude and asked it to read the text. All settings were left at their defaults.
const years = [2024, 2030, 2050];
for (const year of years) {
console.log(year);
};
It can be useful when showing some code - all spaces are saved:<div>
<div>
Some text
</div>
<div>
Other text
</div>
</div>
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
// import Quill from 'quill'; // SSR problem with 'document', need to use dynamic import
import type Quill from 'quill';
const elemForQuillEditor = ref<HTMLDivElement|null>(null);
let editor: null|Quill = null; // Do not store in ref() - it causes bugs!
// ...
async function createQuillAndSetListeners() {
const Quill = (await import('quill')).default; // This is most important thing - usage of JS dynamic import
if (!elemForQuillEditor.value) return;
editor = new Quill(elemForQuillEditor.value, {
theme: 'snow',
modules: {
history: {
delay: 2000,
maxStack: 500,
userOnly: true,
},
toolbar: {
container: [
['bold', 'italic', 'underline', 'strike'],
['link'],
[{ list: 'ordered' }, { list: 'bullet' }],
[{ script: 'sub' }, { script: 'super' }],
[{ header: [1, 2, 3, 4, 5, 6, false] }],
[{ color: [] }, { background: [] }],
['clean'],
['undo', 'redo'],
],
handlers: {
undo() {
editor?.history.undo();
},
redo() {
editor?.history.redo();
},
},
},
},
placeholder: props.placeholder,
});
editor.on('text-change', () => {
if (!editor) return;
// ... my other code
});
}
// ...
onMounted(createQuillAndSetListeners);
#include <stdlib.h> char str[] = "123"; int num = atoi(str); // 123
console.log(btoa('Famabara')); // 'RmFtYWJhcmE='
console.log(atob('RmFtYWJhcmE')); // 'Famabara'