Skip to content

Instantly share code, notes, and snippets.

View baeharam's full-sized avatar
🎯
Focusing

baeharam baeharam

🎯
Focusing
View GitHub Profile

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

1. 마크다운에 관하여

1.1. 마크다운이란?

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

1.2. 마크다운의 장-단점

1.2.1. 장점

@baeharam
baeharam / main.dart
Last active July 10, 2018 04:21
typedef, underscore parameter
typedef Compare = int Function(Object a, Object b);
class SortedCollection {
Compare compare;
SortedCollection(this.compare);
}
// Initial, broken implementation.
int sort(Object a, Object b) => 0;
@baeharam
baeharam / main.dart
Created July 10, 2018 04:26
typedef
typedef Compare = int Function(Object a, Object b);
class SortedCollection {
Compare compare;
SortedCollection(this.compare);
}
// Initial, broken implementation.
int sort(Object a, Object b) => 0;
@baeharam
baeharam / main.dart
Created July 10, 2018 04:29
typdeferror
class SortedCollection {
Function compare;
SortedCollection(int f(Object a, Object b)) {
compare = f;
}
}
// Initial, broken implementation.
int sort(Object a, Object b) => 0;
@baeharam
baeharam / card.dart
Last active July 13, 2018 03:43
card
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(home: MyApp()));
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Card"),
@baeharam
baeharam / tetris.c
Created March 17, 2019 15:00
My Dirty Tetris
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <conio.h> // 비표준 함수 kbhit()와 getch()를 위한 헤더파일
#include <time.h> // Sleep(시간)함수를 위한 헤더파일
// 참 거짓
#define TRUE 1
#define FALSE 0
@baeharam
baeharam / what-forces-layout.md
Created August 12, 2019 13:26 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@baeharam
baeharam / bfs.js
Created October 31, 2019 12:52
BFS implementation
const paintAdjcent = (x, y, tableData) => {
const queue = [];
const row = tableData.length, col = tableData[0].length;
const visited = new Array(row).fill();
visited.forEach((_, idx) => { visited[idx] = new Array(col).fill(false); });
visited[x][y] = true;
queue.push({x: x,y: y});
while(typeof queue !== 'undefined' && queue.length > 0) {
const front = queue.shift();
@baeharam
baeharam / bfc-solve-margin-collapsing.markdown
Created February 26, 2020 03:13
BFC - Solve Margin Collapsing
@baeharam
baeharam / machine.js
Last active July 15, 2020 07:05
Generated by XState Viz: https://xstate.js.org/viz
const INACTIVE = '비활성화';
const ACTIVE = '활성화';
const DELETE_PENDING = '삭제로딩';
const DELETE_SUCCESS = '삭제성공';
const DELETE_FAILURE = '삭제실패';
// Events
const TYPE = '입력';
const DELETE = '삭제';