Skip to content

Instantly share code, notes, and snippets.

View dev-redo's full-sized avatar
πŸ•ŠοΈ

SeungYeon Hong dev-redo

πŸ•ŠοΈ
View GitHub Profile
@cgiosy
cgiosy / gen.js
Last active March 14, 2023 18:09
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) {
@Gumball12
Gumball12 / _worth-reading.md
Last active June 11, 2026 02:39
λ‚˜λ₯Ό μœ„ν•΄ μ €μž₯ν•˜λŠ” 읽어볼 λ§Œν•œ κΈ€λ“€ λͺ¨μŒ
@jjangga0214
jjangga0214 / yarn.md
Last active March 3, 2025 12:13
[yarn] yarn 의 μ‚¬μš©λ°©λ²•μ— λŒ€ν•΄ μ„€λͺ…ν•œλ‹€. #yarn #npm

yarn

yarn 은 javascirpt 의 package manager 이닀. npm 의 drop-in substitute 둜 μ‚¬μš©ν•  수 μžˆλŠ” 점이 초기 λ„μž…μ—λ„ 큰 μž₯점이닀.
νŒ¨ν‚€μ§€ μ„€μΉ˜ 속도가 더 λΉ λ₯΄κ³ , νŒ¨ν‚€μ§€ μ„€μΉ˜κ³Όμ •μ—μ„œ νŒ¨ν‚€μ§€κ°€ codeλ₯Ό running ν•˜μ§€ μ•Šλ„λ‘ ν•˜μ—¬ 더 λ³΄μ•ˆμƒ μ•ˆμ „ν•˜λ‹€.
λ˜ν•œ, 같은 package.json 에 μ˜μ‘΄ν•˜λŠ” λ‘κ°œμ˜ μ„œλ‘œ λ‹€λ₯Έ ν™˜κ²½μ΄ μ„œλ‘œ λ‹€λ₯Έ λ²„μ „μ˜ νŒ¨ν‚€μ§€ μ˜μ‘΄μ„±μ„ κ°€μ§€λŠ” 것을 λ°©μ§€ν•˜κΈ° μœ„ν•΄, λ²„μ „μ˜ range κ°€ μ•„λ‹Œ, μ •ν™•ν•œ 버전을 λͺ…μ‹œν•œ yarn.lock νŒŒμΌμ„ μ‚¬μš©ν•œλ‹€.

μ£Όμš”

# npm install
yarn install λ˜λŠ” yarn
@OleMchls
OleMchls / index.html
Created March 4, 2014 02:35
pdf.js text rendering
<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>