Skip to content

Instantly share code, notes, and snippets.

View paikwiki's full-sized avatar
🏠
Working from home

paikwiki paikwiki

🏠
Working from home
View GitHub Profile
@paikwiki
paikwiki / settings.json
Last active March 15, 2020 12:43
VS Code User Settings(Deprecated)
// Deprecated: You can see new settings.json: https://github.com/paikwiki/setup-my-dev-machine/
// ~/Library/Application Support/Code/User/settings.json
{
"42header.username": "cbaek",
"42header.email": "cbaek@student.42seoul.kr",
"workbench.colorTheme": "Monokai Dimmed",
"workbench.activityBar.visible": false,
"workbench.startupEditor": "newUntitledFile",
"workbench.colorCustomizations": {
"editorRuler.foreground": "#0b445a"

Creational Patterns (생성 패턴)

  • Abstract Factory : 구체적인 클래스를 지정하지 않고 관련성을 갖는 객체들의 집합을 생성하거나 서로 독립적인 객체들의 집합을 생성할 수 있는 인터페이스를 제공한다.
  • Builder : 복합 객체의 생성 과정과 표현 방법을 분리함으로써 동일한 생성 공정이 서로 다른 표현을 만들 수 있게 한다.
  • Factory Method : 객체를 생성하는 인터페이스를 정의하지만, 인스턴스를 만들 클래스의 결정은 서브클래스가 한다. Factory Method 패턴에서는 클래스의 인스턴스를 만드는 시점을 서브클래스로 미룬다.
  • Prototype : 프로토타입의 인스턴스를 이용해서 생성할 객체의 종류를 명세하고 이 프로토타입을 복사해서 새로운 객체를 생성한다.
  • Singleton : 클래스의 인스턴스는 오직 하나임을 보장하며 이 인스턴스에 접근할 수 있는 방법을 제공한다.

Structural Patterns (구조 패턴)

  • Adapter : 클래스의 인터페이스를 클라이언트가 기대하는 다른 인터페이스로 변환한다. Adapter패턴은 호환성이 없는 인터페이스 때문에 함께 사용할 수 없는 클래스를 개조하여 함께 작동하도록 해준다.
  • Bridge : 추상화와 구현을 분리하여 각각을 독립적으로 변형할 수 있게 한다.
@paikwiki
paikwiki / app.js
Created February 17, 2019 12:42
codespitz#80-assignments01
// Block
const Block = class{
constructor(type) {
this._type = type;
}
get image(){ return `url('img/${this._type}.png')`; }
get type(){ return this._type; }
};
Block.GET = (type = parseInt(Math.random() * 5))=>new Block(type);
@paikwiki
paikwiki / _config.yml
Last active May 25, 2018 06:57
This is Korean translation of `_config.yml` which is made with `jekyll new {blog}`.
# 환영합니다!
#
# 이 설정 파일은 여러분이 한번 설정하고 나면 이후에 거의 수정하지 않을 값과, 여러분의 블로그 전체에
# 영향을 주는 환경설정을 담고 있습니다. 만약 이 파일을 자주 수정하고 있다고 느낀다면, 지킬의 data
# 파일 기능으로 자주 업데이트하는 데이터를 관리하세요.
#
# 여러분이 'bundle exec jekyll serve' 명령어를 사용할 때, 기술적인 이유로 인해 이 파일은
# 자동적으로 새로고침되지 않습니다.
# 이 파일을 수정했다면, 서버를 다시 실행해주세요.
<!DOCTYPE html>
<html lang="ko">
<head>
</head>
<body>
<header>
</header>
<article>
</article>
<footer>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website title</title>
</head>
<body>
<header>
<h1><a href="#">Website title</a></h1>
@paikwiki
paikwiki / createEmptyMarkdownFiles.sh
Created March 20, 2018 05:17
Make markdown files for gitbook
#!/bin/bash
# names : names of files
# dirName : target directory
names=("section01.md"
"section02.md"
"section03.md"
"section04.md"
"section05.md"
@paikwiki
paikwiki / gist:59562b146d691f44acbc8bb40585e9c6
Created January 15, 2018 01:57 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
for atom settings