This file contains 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
'use strict'; | |
const querystring = require('querystring'); // Don't install. | |
const AWS = require('aws-sdk'); // Don't install. | |
const Sharp = require('sharp'); | |
const DEFAULT_BUCKET = '<your default bucket name>'; | |
const S3 = new AWS.S3({ | |
region: 'ap-northeast-2' |
This file contains 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
/** | |
* https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api#req-user-info | |
*/ | |
export type DateTime = string | |
export type Gender = 'female' | 'male' | |
export type AgeRange = | |
| '1-9' | |
| '10-14' | |
| '15-19' |
This file contains 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
// src/App.js | |
import React, { Component } from "react"; | |
import "./App.css"; | |
import axios from "axios"; | |
import { Route, Link, Switch } from "react-router-dom"; | |
//import Home from './inc/home.js';// | |
//import Test from './inc/test.js';// | |
// import Head from "./inc/Head"; | |
import { Head } from "./inc"; | |
import UserList from "./components/user/UserList"; |
This file contains 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
/* 이 클래스는 페이지 이동 기능을 구현하기 위해서 필요한 7가지 정보를 기억하고 만들어줄 클래스이다. | |
* 페이징 처리하기 *************************************************** | |
[이전] [1][2][3][4][5] [다음] | |
[이전] [6][7][8][9][10] [다음] | |
위의 모양을 만들기 위해서 반드시 알아야 할 정보 | |
1. 현재 페이지 | |
2. 총 데이터 개수 | |
=> 위 2개는 반드시 누군가가 알려줘야 할 정보 | |
3. 한 화면에 보여줄 목록의 개수 - 10개 | |
4. 한 화면에서 이동 가능한 페이지 수 |
This file contains 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
function percent(number) { | |
const rend = Math.random(); | |
return number * 0.01 > rend; | |
} | |
function Pocketmon(name, type) { | |
this.name = name; | |
this.type = type; | |
this.life = 100; |
This file contains 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
# ${PROJECT_ROOT}/.ebextensions/nginx | |
user nginx; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 32725; | |
events { | |
worker_connections 1024; |
This file contains 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
const TerserWebpackPlugin = require("terser-webpack-plugin"); | |
const path = require("path"); | |
const isProduction = process.env.NODE_ENV === "production"; | |
module.exports = { | |
mode: isProduction ? "production" : "development", | |
context: __dirname + "/src", // 모듈 파일 폴더 | |
entry: { |
This file contains 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
import React from "react"; // NodeJS 로 설치 한 React default 모듈을 임포트 한다. | |
import Header from "./Header"; // new | |
// App 컴포넌트 생성 | |
// React 의 Component 객체를 상속 받는다. | |
class App extends React.Component { | |
// Component 객체의 생성자의서 Component 생성자에 현재 컴포넌트의 props 를 주입한다. | |
// 단순하게 말해, React 내부적으로 new Component(props) 를 사용 하기 위핸 생성자인 것이다. | |
constructor(props) { | |
super(props); |
This file contains 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
import React from "react"; // NodeJS 로 설치 한 React default 모듈을 임포트 한다. | |
import Header from "./Header"; // new | |
// App 컴포넌트 생성 | |
function App() { | |
return ( | |
<div> | |
<Header /> {/* new */} | |
hello world | |
</div> |
NewerOlder