**Markdown**์ ํ ์คํธ ๊ธฐ๋ฐ์ ๋งํฌ์ ์ธ์ด๋ก 2004๋ ์กด๊ทธ๋ฃจ๋ฒ์ ์ํด ๋ง๋ค์ด์ก์ผ๋ฉฐ ์ฝ๊ฒ ์ฐ๊ณ ์ฝ์ ์ ์์ผ๋ฉฐ HTML๋ก ๋ณํ์ด ๊ฐ๋ฅํ๋ค. ํน์๊ธฐํธ์ ๋ฌธ์๋ฅผ ์ด์ฉํ ๋งค์ฐ ๊ฐ๋จํ ๊ตฌ์กฐ์ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ์น์์๋ ๋ณด๋ค ๋น ๋ฅด๊ฒ ์ปจํ ์ธ ๋ฅผ ์์ฑํ๊ณ ๋ณด๋ค ์ง๊ด์ ์ผ๋ก ์ธ์ํ ์ ์๋ค. ๋งํฌ๋ค์ด์ด ์ต๊ทผ ๊ฐ๊ด๋ฐ๊ธฐ ์์ํ ์ด์ ๋ ๊นํ(https://github.com) ๋๋ถ์ด๋ค. ๊นํ์ ์ ์ฅ์Repository์ ๊ดํ ์ ๋ณด๋ฅผ ๊ธฐ๋กํ๋ README.md๋ ๊นํ์ ์ฌ์ฉํ๋ ์ฌ๋์ด๋ผ๋ฉด ๋๊ตฌ๋ ๊ฐ์ฅ ๋จผ์ ์ ํ๊ฒ ๋๋ ๋งํฌ๋ค์ด ๋ฌธ์์๋ค. ๋งํฌ๋ค์ด์ ํตํด์ ์ค์น๋ฐฉ๋ฒ, ์์ค์ฝ๋ ์ค๋ช , ์ด์ ๋ฑ์ ๊ฐ๋จํ๊ฒ ๊ธฐ๋กํ๊ณ ๊ฐ๋ ์ฑ์ ๋์ผ ์ ์๋ค๋ ๊ฐ์ ์ด ๋ถ๊ฐ๋๋ฉด์ ์ ์ ์ฌ๋ฌ ๊ณณ์ผ๋ก ํผ์ ธ๊ฐ๊ฒ ๋๋ค.
-- Retrieve descendants | |
-- ==================== | |
-- retrieve descendants of #4 | |
SELECT c.* | |
FROM Comments AS c | |
JOIN TreePaths AS t ON c.comment_id = t.descendant | |
WHERE t.ancestor = 4; | |
-- Retrieve ancestors |
django ๊ธฐ๋ณธ ํ ์คํธ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ง์ด๊ทธ๋ ์ด์ ๋์ ๋๋ฆฌ๊ณ ๋ฒ๊ฑฐ๋กญ๊ธฐ ๋๋ฌธ์ py.test์ model_mommy๋ฅผ ์ฌ์ฉํด์ ๋น ๋ฅด๊ฒ ํ ์คํธ๋ฅผ ํ๋ ๋ฐฉ๋ฒ์ ์๊ฐํจ.
- py.test : http://pytest.org/
- pytest-django : http://pytest-django.readthedocs.org/
- model_mommy : http://model-mommy.readthedocs.org/
import java.time.*; | |
import java.time.format.DateTimeFormatter; | |
import java.time.format.FormatStyle; | |
import java.time.temporal.ChronoUnit; | |
import java.time.temporal.TemporalAdjusters; | |
import java.util.*; | |
import static java.time.temporal.TemporalAdjusters.*; | |
public class Java8DateTimeExamples { |
์ต๊ทผ ์ธ๊ณต์ง๋ฅ์ ํ์ฉํ ์ฑ๋ด์ ๋ํ ๊ด์ฌ์ด ๋์์ง๊ณ ์์ต๋๋ค. ์ฑ๋ด ์ค๊ณ์ ๊ดํ ์ข์ ๊ธ์ด ์์ด ๋ฒ์ญ์ ํด๋ณด์์ต๋๋ค. ์ด ๊ธ์ IBM DeveloperWorks์ ๊ธฐ์ฌ๋ Michael Yuan์ ๊ธ์ ๋ฒ์ญํ ๊ฒ์ผ๋ก ์์ญ์ด ์์ต๋๋ค. - ๊น์ ์ฃผ([email protected])
์ฌ์ฉ์๋ ์ฑ๋ด์ด ๋งค์ฐ ๊ฐ๋จํ๊ณ ์ต์ํ์ ์๊ตฌ๋ง ํ๊ธฐ์ ์ข์ํฉ๋๋ค. ๊ทธ๊ฒ์ ๋ํ์ ๋ฌธ์ ๋ฉ์์ง์ฒ๋ผ ๊ฐ๋จํด์ง ์ ์์ต๋๋ค. ๋ํ, ์ฌ์ฉ์๋ ์์ ์ด ์ ํธํ๋ ๋ฉ์์ง ์ฑ์ ๊ณ์ ๋จธ๋ฌผ๊ธฐ๋ฅผ ์ ํธํฉ๋๋ค. ์ฑ, ์น URL, ๋ฉ๋ด, ๋ฒํผ, ๊ด๊ณ , ํฌ๋กฌ ๋ฐ ๊ธฐํ ์์๋ฅผ ํ์ํ์ง ์๊ณ ๋ฐ๋ก ๋ชฉํ๋ฅผ ๋ฌ์ฑํ๊ณ ์ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์ด ๋จ์์ฑ์ ํฐ ์ค๊ณ ๊ณผ์ ๋ ์ ์ํฉ๋๋ค. ์ฑ๋ด์ ์ฌ์ฉ์์ ๋ง์ ์ ํํ๊ฒ ์ดํดํ๊ณ ์ ์ ํ ํ๋ํด์ผ ํฉ๋๋ค. ์ด๊ฒ์ ์ค๋๋ ์ต๊ณ ์ ์์ฐ์ด AI (์ธ๊ณต ์ง๋ฅ)์๊ฒ๋ ๋งค์ฐ ์ด๋ ค์ด ๊ณผ์ ์ ๋๋ค.
ํ์ฌ ์ํ์ AI์์๋, ๋ํ์ ๋ฌธ์ ๋ฉ์์ง ๋๋ ๋ํ์(Conversational) UI, ์ฆ CUI๋ (์ํ๊น๊ฒ๋) ๊ฑฐ์ ํญ์ ์ ์ค๊ณ๋ ๊ทธ๋ํฝ UI(GUI)๋ณด๋ค ์ด๋ฑํฉ๋๋ค. GUI์ ๋น๊ตํ์ฌ CUI๋ ์ด๊ธฐ ๋จ๊ณ์ ์์ต๋๋ค. ์ปค๋ฎค๋ํฐ๋ก์ ์ฐ๋ฆฌ๋ ์ฌ์ ํ CUI์ ๋์์ธ ํจํด๊ณผ ์ฐ์ ์ฌ๋ก๋ฅผ ๋ชจ์ํ๊ณ ์์ต๋๋ค. ์ด ํํ ๋ฆฌ์ผ์์๋ ์ฑ๋ด์ด ์ ์คํจํ๊ณ ์ฑ๊ณตํ ์ ์๋์ง ์ค๋ช ํฉ๋๋ค.
#include<stdio.h> //2byte์ ํ๋ฌธ(ํ๊ธ) | |
#include<string.h> | |
int main(int argc, char *argv[]) | |
{ | |
char str[80],*ps,*pe; | |
int res; | |
if(argc == 2){ | |
strcpy(str,argv[1]); |
#include<stdio.h> //1byte์ ํ๋ฌธ(์์ด) | |
#include<string.h> | |
int main(int argc, char *argv[]) | |
{ | |
char str[80],*ps,*pe; | |
int res; | |
if(argc == 2){ | |
strcpy(str,argv[1]); |
#include<stdio.h> //์คํํ์ผ๊ณผ ๊ฐ์ ์์น์ ์์ด์ผ ํ์ผ์ ์ฐพ๋๋ค | |
#include<stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
FILE *fp1,*fp2; | |
char ch; | |
int start,end,n; | |
if(argc == 2) |
#include<stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
FILE *fp1,*fp2; | |
char ch; | |
fp1 = fopen("filecopy.cpp","r"); | |
if(fp1 == NULL){ | |
printf("Error: %s does not exist!\n","filecopy.cpp"); |