Skip to content

Instantly share code, notes, and snippets.

Minjun Kim velopert

Block or report user

Report or block velopert

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
View ValidationExample.js
class ValidationExample extends React.Component {
/* ... */
}
Content.propTypes = {
// JS primitive types
optionalArray: React.PropTypes.array,
@velopert
velopert / main.js
Created Jun 30, 2016
간단한 Express 사용 에제
View main.js
var express = require('express');
var morgan = require('morgan'); // 서버 로그 콘솔에 기록
var bodyParser = require('body-parser'); // JSON 형태 데이터 파싱
// EXPRESS 생성
var app = express();
// 3rd party middleware 적용
app.use(morgan('dev'));
app.use(bodyParser.json());
@velopert
velopert / main.js
Created Jun 30, 2016
간단한 Express 사용 에제
View main.js
var express = require('express');
var morgan = require('morgan'); // 서버 로그 콘솔에 기록
var bodyParser = require('body-parser'); // JSON 형태 데이터 파싱
// EXPRESS 생성
var app = express();
// 3rd party middleware 적용
app.use(morgan('dev'));
app.use(bodyParser.json());
View gist:fda936bee7493eb64314f82adfc28095
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@velopert
velopert / README.md
Created Aug 21, 2016 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet
View README.md

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@velopert
velopert / README-Template.md
Created Aug 21, 2016 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

View vscode-extensions.md

Mateiral Neutral Theme
ESLint
Babel ES6/ES7
Code Beautifier
Material Icon Theme
Guides
React-Beautify
jsx
Reactjs code snippets

@velopert
velopert / reducer.js
Created May 9, 2017
solution, using immutablejs
View reducer.js
import { List, Map, fromJS } from 'immutable';
const initialState = Map({
fruits: fromJS([ // this will turn this array into List of Map
{
"itemName": "banana",
"price": 1.00,
"quantityRemaining": 10
},
{
@velopert
velopert / App.js
Last active May 20, 2017
LifeCycle API 실습
View App.js
import React, {Component} from 'react';
import ColorBlock from './ColorBlock';
function getRandomColor() {
return '#' + Math.floor(Math.random()*16777215).toString(16);
}
class App extends Component {
constructor(props) {
super(props);
You can’t perform that action at this time.