Skip to content

Instantly share code, notes, and snippets.

View Lutece's full-sized avatar

Lutece Lutece

  • Seoul in South Korea
View GitHub Profile
@Lutece
Lutece / composing-software.md
Created January 23, 2020 13:47 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
@Lutece
Lutece / composing-software.md
Created January 23, 2020 13:47 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
class AggregateRoot {
apply(event) {
this.handle(event)
return this
}
handle(event) {
var eventName = event.constructor.name
var eventMethod = `apply${eventName}`
class AggregateRoot {
apply(event) {
this.handle(event)
return this
}
handle(event) {
var eventName = event.constructor.name
var eventMethod = `apply${eventName}`
@Lutece
Lutece / introrx.md
Created February 18, 2019 04:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@Lutece
Lutece / getOddSquareSumResult.js
Last active October 16, 2017 09:42
The script for a interview of zigzag
//각 기능 단계를 담당하는 함수 구현
let getNumberArray = str => str.replace(/[^0-9]/g,'-').split('-').filter(val => !isNaN(val)), //주어진 문자열을 숫자만 담긴 배열로 만들어 반환합니다.
getOddNumber = checkNum => checkNum % 2 !== 0, //숫자가 홀수인지 판별해줍니다.
sumSquaredNumbers = (pre, cur, idx) => { // 배열 내의 숫자들의 제곱의 합을 반환하는 reduce 기능을 담당합니다.
if(idx > 1) {
return pre + Math.pow(cur, 2);
} else {
return Math.pow(pre, 2) + Math.pow(cur, 2);
}
};

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

**Markdown**은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점