λλ₯Ό μν΄ μ μ₯νλ μ½μ΄λ³Ό λ§ν κΈλ€ λͺ¨μ
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'); | |
| const filenum = 30; // or 100 | |
| const lines = 2000000; // or 1000000 | |
| const errors = 100000; | |
| const ratio = lines / errors | 0; | |
| const count = lines / ratio | 0; | |
| for (let i = 1; i <= filenum; i += 1) { |
yarn μ javascirpt μ package manager μ΄λ€. npm μ drop-in substitute λ‘ μ¬μ©ν μ μλ μ μ΄ μ΄κΈ° λμ
μλ ν° μ₯μ μ΄λ€.
ν¨ν€μ§ μ€μΉ μλκ° λ λΉ λ₯΄κ³ , ν¨ν€μ§ μ€μΉκ³Όμ μμ ν¨ν€μ§κ° codeλ₯Ό running νμ§ μλλ‘ νμ¬ λ 보μμ μμ νλ€.
λν, κ°μ package.json μ μμ‘΄νλ λκ°μ μλ‘ λ€λ₯Έ νκ²½μ΄ μλ‘ λ€λ₯Έ λ²μ μ ν¨ν€μ§ μμ‘΄μ±μ κ°μ§λ κ²μ λ°©μ§νκΈ° μν΄, λ²μ μ range κ° μλ, μ νν λ²μ μ λͺ
μν yarn.lock νμΌμ μ¬μ©νλ€.
# npm install
yarn install λλ yarnThese rules are adopted from the AngularJS commit conventions.
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> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
| <script src="http://mozilla.github.io/pdf.js/build/pdf.js"></script> | |
| <script src="http://vivin.net/pub/pdfjs/textlayerbuilder.js"></script> | |
| </head> | |
| <body> | |
| <div id="pdfContainer" class = "pdf-content"> | |
| </div> | |
| <script> |