ETC

    [Github] remote repository와의 sync 맞추기

    github로 여러분들이 어떠한 프로젝트를 본인의 github에 clone해서 많이 사용하고 있을 겁니다. clone을 하려는 repository를 src, 내 github에 clone된 repository를 des라고 해봅시다. src 프로젝트는 OpenSource로 많이 개발자들이 참여하여 빠르게 발전해 나가고, 하루에도 많은 Commit들이 merge되고 있다고 하면, 내 github에 존재하는 des repository는 src repository에 merge된 commit들이 자동적으로 반영될까요? 그렇지 않습니다. 그렇기 때문에 여러분들이 직접 src repository에서 des repository로 적용시켜줘야 합니다. 1. 현재 추가되어 있는 remote repository를 확인 (gi..

    3D 프린팅 기술의 미래에 대해..

    3D 프린팅 기술의 미래에 대해..

    3D 프린팅은 연속적인 계층의 물질을 뿌리면서 3차원 물체를 만들어내는 제조 기술입니다. 3D 프린팅 기술이 보편화되면서 전 세계의 메이커들은 열광하게 되었으며 더욱 완성도 높은 메이킹 제품들을 만들어내고 있으며 전 세계적으로 메이커 열풍은 계속 확산되고 있습니다. 또한 의료, 산업, 의류, 음식 등 각 분야에서도 다양하게 사용되고 있습니다. 3D 프린팅 기술은 점점 발전하고 있지만 명확하게 기술적 한계 또한 존재합니다. 프린터의 크기가 커질수록 비용이 크게 증가함은 물론 사용할 수 있는 제품의 소재가 많지 않으며 특정 영역에서 한정되어 물체 생성이 가능합니다. 이 말은 일정한 크기의 판넬이 존재하여 그 위에 계층을 쌓아올리는 방식 또는 3D 프린팅의 하드웨어적 크기의 최대 길이에 따라 만들 수 있는 제..

    Priority Queue , 우선순위 큐

    #include #define MAX_SIZE 100int heap[MAX_SIZE];int heapSize = 0;int heapPush(int value){if (heapSize > MAX_SIZE){printf("queue is full!");return 0;}heap[++heapSize] = value;int current = heapSize;while (current > 1 && heap[current]

    Linux terminal cmd line에 branch name 넣기

    ~/.bashrc에 아래 스크립트 추가 # branch colorc_cyan=`tput setaf 6`c_red=`tput setaf 1`c_green=`tput setaf 2`c_sgr0=`tput sgr0` branch_color () { if git rev-parse --git-dir >/dev/null 2>&1 then color="" if git diff --quiet 2>/dev/null >&2 then color="${c_green}" if git status | grep 'Your branch is ahead of' > /dev/null then color="${c_cyan}" fi else color=${c_red} fi else return 0 fi echo -ne $color} if ..

    Geometry

    /** * @file geometru.c * @date 17.07.2017 * @author linuxias * @brief This code is for geometric API. */ typedef struct Point {int x;int y;} Point; int ccw(Point p, Point q){return p.x * q.y - q.x * p.y;} int ccw_with_point(Point r, Point p, Point q){Point rp = {p.x - r.x, p.y - r.y};Point rq = {q.x - r.x, q.y - r.y}; return ccw(rp, rq);} int is_left_turn(Point r, Point p, Point q){return ccw_wi..

    Git Tip

    [Show your branch name on the Linux promp]https://www.leaseweb.com/labs/2013/08/git-tip-show-your-branch-name-on-the-linux-prompt/