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
| <template> | |
| <div> | |
| <h1>Todo List</h1> | |
| <input | |
| type="text" | |
| v-model="contentInput" | |
| placeholder="Type your todo..." | |
| @keypress.enter="addTodo" | |
| /> |
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
| <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> |
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
| <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"; |
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"> | |
| <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; | |
| } |
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"> | |
| <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; |
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
| // 1. images 배열안에 있는 정보(height, width)를 곱해 넓이를 구하여 areas 배열에 저장하세요. | |
| const images = [ | |
| { height: 10, width: 30 }, | |
| { height: 20, width: 90 }, | |
| { height: 54, width: 32 }, | |
| ]; | |
| const areas = []; |
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"> | |
| <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; | |
| } |
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"> | |
| <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> |
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
| /* | |
| 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 } |
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
| // 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) { |