Skip to content

Instantly share code, notes, and snippets.

View kyh196201's full-sized avatar
🐣
Hi

Seungwoo Kim kyh196201

🐣
Hi
View GitHub Profile
@kyh196201
kyh196201 / CheckBox.vue
Created June 2, 2025 06:24 — forked from Jonarod/CheckBox.vue
Simple custom CheckBox component for Vue.js, compatible with v-model.
/**
* @usage:
*
* <CheckBox label="Foo" value="foo" v-model="MySelectedValues" />
* <CheckBox label="Bar" value="bar" v-model="MySelectedValues" />
* <CheckBox label="Baz" value="baz" v-model="MySelectedValues" />
*
* data(){
* return {
* MySelectedValues: [],
@kyh196201
kyh196201 / minMax.js
Created September 10, 2024 01:52
Apply min max javascript
function minMax(min, max, value) {
if (value < min) return min
if (value > max) return max
return value
}
@kyh196201
kyh196201 / README-Template.md
Created December 9, 2023 06:14 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@kyh196201
kyh196201 / .prettierrc.js
Last active December 9, 2023 04:56
prettier config for vue3
// ref: https://gist.github.com/karpolan/2c573b5767bc9b65db9936c7fad4daac
module.exports = {
endOfLine: "auto",
printWidth: 120, // max 120 chars in line, code is easy to read
useTabs: false, // use spaces instead of tabs
tabWidth: 2, // "visual width" of of the "tab"
/* trailingComma: "all", */
trailingComma: 'es5', // add trailing commas in objects, arrays, etc.
semi: true, // add ; when needed
singleQuote: true, // '' for stings instead of ""
@kyh196201
kyh196201 / isPrime.js
Last active September 11, 2021 08:54
javascript check number is prime
function isPrime(num) {
for(let i = 2, s = Math.sqrt(num); i <= s; i++) {
if(num % i === 0) return false;
}
return num > 1;
}
@kyh196201
kyh196201 / .gitignore
Created July 15, 2021 06:45 — forked from andreasonny83/.gitignore
Gitignore template for JavaScript projects
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Runtime data
pids
*.pid
@kyh196201
kyh196201 / how-to-write-by-markdown.md
Created April 28, 2021 15:08 — forked from ihoneymon/how-to-write-by-markdown.md
λ§ˆν¬λ‹€μš΄(Markdown) μ‚¬μš©λ²•

[곡톡] λ§ˆν¬λ‹€μš΄ markdown μž‘μ„±λ²•

1. λ§ˆν¬λ‹€μš΄μ— κ΄€ν•˜μ—¬

1.1. λ§ˆν¬λ‹€μš΄μ΄λž€?

Markdown은 ν…μŠ€νŠΈ 기반의 λ§ˆν¬μ—…μ–Έμ–΄λ‘œ 2004λ…„ 쑴그루버에 μ˜ν•΄ λ§Œλ“€μ–΄μ‘ŒμœΌλ©° μ‰½κ²Œ μ“°κ³  읽을 수 있으며 HTML둜 λ³€ν™˜μ΄ κ°€λŠ₯ν•˜λ‹€. νŠΉμˆ˜κΈ°ν˜Έμ™€ 문자λ₯Ό μ΄μš©ν•œ 맀우 κ°„λ‹¨ν•œ ꡬ쑰의 문법을 μ‚¬μš©ν•˜μ—¬ μ›Ήμ—μ„œλ„ 보닀 λΉ λ₯΄κ²Œ 컨텐츠λ₯Ό μž‘μ„±ν•˜κ³  보닀 μ§κ΄€μ μœΌλ‘œ 인식할 수 μžˆλ‹€. λ§ˆν¬λ‹€μš΄μ΄ 졜근 각광받기 μ‹œμž‘ν•œ μ΄μœ λŠ” κΉƒν—™(https://github.com) 덕뢄이닀. κΉƒν—™μ˜ μ €μž₯μ†ŒRepository에 κ΄€ν•œ 정보λ₯Ό κΈ°λ‘ν•˜λŠ” README.mdλŠ” 깃헙을 μ‚¬μš©ν•˜λŠ” μ‚¬λžŒμ΄λΌλ©΄ λˆ„κ΅¬λ‚˜ κ°€μž₯ λ¨Όμ € μ ‘ν•˜κ²Œ λ˜λŠ” λ§ˆν¬λ‹€μš΄ λ¬Έμ„œμ˜€λ‹€. λ§ˆν¬λ‹€μš΄μ„ ν†΅ν•΄μ„œ μ„€μΉ˜λ°©λ²•, μ†ŒμŠ€μ½”λ“œ μ„€λͺ…, 이슈 등을 κ°„λ‹¨ν•˜κ²Œ κΈ°λ‘ν•˜κ³  가독성을 높일 수 μžˆλ‹€λŠ” 강점이 λΆ€κ°λ˜λ©΄μ„œ 점점 μ—¬λŸ¬ 곳으둜 νΌμ Έκ°€κ²Œ λœλ‹€.

1.2. λ§ˆν¬λ‹€μš΄μ˜ μž₯-단점

1.2.1. μž₯점

//App.js
//localStorage Name
const STORAGE_DATA = 'todoData'
function App(selector, title) {
if (!(this instanceof App)) {
throw new Error('New ν‚€μ›Œλ“œ 없이 μ‹€ν–‰ν–ˆμŠ΅λ‹ˆλ‹€')
}