Skip to content

Instantly share code, notes, and snippets.

View taewo's full-sized avatar

Taewoong Moon taewo

  • south korea
View GitHub Profile
@taewo
taewo / react-infinite-es6-version.js
Last active December 4, 2017 06:29
react-infinite es6 version
import React, { Component } from 'react';
import Infinite from 'react-infinite';
class CoPropertyPage extends Component {
constructor(props) {
super(props);
this.state = {
elements: null,
isInfiniteLoading: false,
};
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
const arr = [1, 2, 3]
const sum = (a, b) => a + b
const result = arr.reduce(sum)
// console.log(result)
// arr.forEach(i => console.log(i))
@taewo
taewo / gist:006a7e2909eff54c87aa5355720a0106
Created August 2, 2019 09:30
Vue Getter, Setter 예시
<template>
<div class="input-wrapper">
<h1>input3</h1>
<input v-model="resultOutputValue" :type="type">
</div>
</template>
<script>
export default {
name: 'Input3',
// ====================== main.js
import Vue from 'vue'
import App from './App'
import router from './router'
// Import and use Vue Froala lib.
import VueFroala from 'vue-froala-wysiwyg'
import 'froala-editor/js/plugins.pkgd.min.js'
@taewo
taewo / App.js
Created September 24, 2019 01:21
webpack 빌드 없이도 html에서 react 사용하기
<html>
<head>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js'></script>
</head>
<body>
<div id="root">
</div>
@taewo
taewo / csvdownload.html
Last active April 24, 2021 01:46
한글 인코딩 가능한 csv 다운로드 기능
<!DOCTYPE html>
<html>
<body>
<h1>The script element</h1>
<p id="demo"></p>
<button onclick="handleclick()">aaaa</button>
<script>
document.getElementById("demo").innerHTML = "Hello JavaScript!";
function handleclick (){
console.log('DownloadJsonData')