Skip to content

Instantly share code, notes, and snippets.

View kkoomin's full-sized avatar
🥁

Minha Koo kkoomin

🥁
View GitHub Profile
@kkoomin
kkoomin / Todos.js
Last active June 23, 2020 07:58
todos 앱에 watch 적용하기
<template>
<div>
<h1>Todo List</h1>
<input
type="text"
v-model="contentInput"
placeholder="Type your todo..."
@keypress.enter="addTodo"
/>
@kkoomin
kkoomin / youtube-search.vue
Created June 15, 2020 07:24
youtube search
<template>
<section>
<input
class="search-input"
v-model="searchKeyword"
@keypress.enter="input"
type="text"
/>
<div v-if="videos.length > 0">
<h3>{{ decodeHtmlEntity(videos[0].snippet.title) }}</h3>
@kkoomin
kkoomin / DogImage.vue
Created June 12, 2020 02:14
Dog image vue
<template>
<div>
<h1>{{ title }}</h1>
<button class="image-btn" @click="getDog">이미지 가져오기</button>
<div class="dog-image" v-html="image"></div>
</div>
</template>
<script>
import axios from "axios";
@kkoomin
kkoomin / axios_vue.html
Last active June 10, 2020 04:15
Vue.js 및 Axios를 활용한 HTTP 요청에 대한 이해
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue Axios Test</title>
<style>
.title {
font-weight: 600;
}
@kkoomin
kkoomin / jdenticon.html
Last active June 10, 2020 02:46
jdenticon
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jdenticon 생성기</title>
<style>
input {
display: inline-block;
padding: 0 0.2rem;
@kkoomin
kkoomin / array_helper_method.js
Last active June 9, 2020 05:11
array helper method 실습
// 1. images 배열안에 있는 정보(height, width)를 곱해 넓이를 구하여 areas 배열에 저장하세요.
const images = [
{ height: 10, width: 30 },
{ height: 20, width: 90 },
{ height: 54, width: 32 },
];
const areas = [];
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue Todo List</title>
<style>
.completed {
text-decoration: line-through;
}
@kkoomin
kkoomin / gist:6f6018cd482e2fa4836609ab5bf2e32b
Last active February 22, 2022 01:26
v-model vanilla js 구현
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue Intro</title>
</head>
<body>
<div id="app-vanilla"></div>
<p id="name"></p>
/*
Test #2
Write a command-line program that prints out the sum of two non-negative integers as input arguments. Input arguments are UTF-8 encoded Korean characters only listed as '일이삼사오육칠팔구' and '십백천만억조', and also your program's output should be. The less you use ifs, the higher you get scored. Google Korean Numbering System if you are not familiar with.
*/
const getKoreanSum = (koreanStrArr) => {
const convertKoreanToNum = (str) => {
const digit = { "일": 1, "이": 2, "삼": 3, "사": 4, "오": 5, "육": 6, "칠": 7, "팔": 8, "구": 9 }
const decimal = { "십": 10, "백": 100, "천": 1000, "만": 10000, "억": 100000000, "조": 1000000000000 }
// Write a command-line program that prints out the sum of two non-negative integers as input arguments. You must not use any built-in BigInteger library or convert the inputs to integer directly.
const getSum = (int1, int2) => {
let sum = [];
let tempDigit = 0;
let int1Arr = int1.split("");
let int2Arr = int2.split("");
if(int1Arr.length > int2Arr.length) {