Skip to content

Instantly share code, notes, and snippets.

Taewoong Moon taewo

Block or report user

Report or block taewo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@taewo
taewo / App.js
Created Sep 24, 2019
webpack 빌드 없이도 html에서 react 사용하기
View App.js
<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>
View gist:2d07bc7b5604e0fd4a1873be8e7b3b0e
// ====================== 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'
View gist:006a7e2909eff54c87aa5355720a0106
<template>
<div class="input-wrapper">
<h1>input3</h1>
<input v-model="resultOutputValue" :type="type">
</div>
</template>
<script>
export default {
name: 'Input3',
View gist:a43c62f31a6c2fb17a87b15e85a69780
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))
View testtest
# 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.
#
@taewo
taewo / react-infinite-es6-version.js
Last active Dec 4, 2017
react-infinite es6 version
View react-infinite-es6-version.js
import React, { Component } from 'react';
import Infinite from 'react-infinite';
class CoPropertyPage extends Component {
constructor(props) {
super(props);
this.state = {
elements: null,
isInfiniteLoading: false,
};
You can’t perform that action at this time.