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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>Change events on text box</title> | |
| <script> | |
| window.addEventListener('DOMContentLoaded', () => { | |
| const input = document.querySelector('input#autoincr-textbox'); | |
| const output = document.querySelector('div#autoincr-output'); |
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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>Change events on text box</title> | |
| <script> | |
| window.addEventListener('DOMContentLoaded', () => { | |
| const input = document.querySelector('input#dnd-textbox'); | |
| const output = document.querySelector('div#dnd-output'); |
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
| const jsdom = require('jsdom'); | |
| const domBuilder = (iter) => { | |
| new jsdom.JSDOM(`${iter}`); | |
| if (iter % 1000 === 0) { | |
| console.log(iter); // eslint-disable-line no-console | |
| } | |
| setImmediate(domBuilder.bind(null, iter + 1)); |
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
| const jsdom = require('jsdom'); | |
| for (let iter = 0; ; iter += 1) { | |
| new jsdom.JSDOM(`${iter}`); | |
| if (iter % 1000 === 0) { | |
| console.log(iter); // eslint-disable-line no-console | |
| } | |
| } |
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
| const fs = require('fs'); | |
| function getEntryStrings() { | |
| const ret = []; | |
| const text = fs.readFileSync('JMdict_e').toString(); | |
| const openPos = []; | |
| const endPos = []; | |
| { |
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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>ANGLE?</title> | |
| <style> | |
| body>div { | |
| margin-bottom: 20em; | |
| } |
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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>Master</title> | |
| <script> | |
| window.addEventListener('DOMContentLoaded', function () { | |
| document.querySelector('#triggerBtn').addEventListener('click', function () { | |
| const slaveWindow = window.open('slave.html'); |
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
| #include <stdio.h> | |
| #include <unistd.h> | |
| #define TEST_TXT "test.txt" | |
| void phase1(void) { | |
| FILE * fp = fopen(TEST_TXT, "w"); | |
| fprintf(fp, "hoge\n"); | |
| fclose(fp); |
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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>Intra-page jump</title> | |
| <style> | |
| body { | |
| position: absolute; | |
| height: 1000vh; | |
| } |
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 html> | |
| <html lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>Pre-Repro</title> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const userInput = document.querySelector('div#textInput'); | |
| const logView = document.querySelector('textArea#logView'); |