프로젝트 폴더에서 현재 업로드 되어있는 파일을 제외한 모든 파일을 ignore 하기


  현재 git에 push 되어있는 코드를 제외한, 나머지 불필요한 파일들이 새로 추가된 경우가 있다. 이 때, 모든 파일들을 직접 .gitignore에 기록하는 것은 참 힘들다. 이 때, shell script를 이용하여 .gitignore 파일에 추가하는 방법이 있다.


git status --porcelain | grep '^??' | cut -c4- >> .gitignore


  .gitignore 파일이 없을 경우, .gitignore 파일을 생성시키면서 업로드 목록을 제외하려면 다음과 같이 실행한다.


echo "$(git status --porcelain | grep '^??' | cut -c4-)" > .gitignore


git으로 코드 작성 시 원하지 않는 파일을 업로드 안하기


  git으로 코드를 작성해 배포를 할 때, 업로드를 하지 않기 위한 파일들이 존재할 때가 있다. 이 때, .gitignore 파일을 작성하여, 불필요한 파일들을 업로드 목록에서 제거한다.


- git 프로젝트 디렉토리에서 .gitignore 파일 작성 후에 Terminal에 다음과 같이 입력


git rm -r --cached .
git add *
git commit -m ".gitignore update"
git push
git push -u origin master




Github에 Local Project를 처음 올릴 때, Command line을 통하여 올리는 방법


- github.com 에서 프로젝트를 생성한 뒤, repository 주소를 알아놓음


- Terminal 프로그램에서 Local Project 폴더로 이동한 후, 다음과 같이 명령어를 실행


git init
git add .
git commit -m "[My Message]"
git remote add origin [address of git repository]
git push origin master


1. http://www.scala-lang.org/download/ 에서 Scala Binary 다운

- JRE 1.6 이상이 미리 설치되어 있어야 함


2. https://www.jetbrains.com/idea/에서 Intellij IDE를 다운

- 학생 이메일이 있으면, 1년동안 사용 가능 라이센스를 줌

- 라이센스는 1년마다 갱신 가능

- 교육용 목적으로만 사용해야 함


3.Intellij 실행 전, 설정 스크립트 수정을 통한 성능 튜닝(WIN 64비트 설정 기준)


- [C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.4\bin\idea64.exe.vmoptions]파일을 열어 아래 URL에 있는 스크립트로 대체한다.

- https://gist.github.com/P7h/4388881


4. Intellij 설치 시, Scala Plugin을 설치



다음과 같은 xml 문서를 sunlight hilighter를 이용해서 하고 싶다고 가정을 하자.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center_horizontal"
    android:gravity="center_horizontal"
    android:orientation="vertical" >
</LinearLayout>

이 때, 일반 코드를 사용할 때 처럼 


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="fill_parent"

    android:layout_gravity="center_horizontal"

    android:gravity="center_horizontal"

    android:orientation="vertical" >

</LinearLayout>


를 그대로 입력하면 나오지가 않는다.


html 코드에 


< : &lt;

> : &gt;


로 대체를 해서 입력을 하자.


<> 는 html에서 tag의 시작과 끝으로 인식하기 때문이다.

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

[Git] Github에 Local Project를 처음 올릴 때  (0) 2017.05.28
[Scala] 개발환경 설정  (0) 2016.03.08
Convention over Configuration  (0) 2013.01.05
system 설계 고려사항  (0) 2013.01.03
플랫폼  (0) 2013.01.03

CoC (Convention over Configuration)

 

프로그래밍 네이밍 규칙 최신 트렌드

 

EJB 같은 Setting은 복잡하고 성능이 좋지 않다.

 

예) class Sample

DBTable samples

 

위와 같이 이름을 정하면 DBTable과 class간 연동이 자동으로 된다.

 

위와 같은 룰을 정해놓고 프로그래밍을 한다.

 

Ruby on Rails라는 언어에서 처음 사용되었다.

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

[Scala] 개발환경 설정  (0) 2016.03.08
sunlight highlighter 사용시 < > 입력해야 할 경우  (0) 2013.01.11
system 설계 고려사항  (0) 2013.01.03
플랫폼  (0) 2013.01.03
Eclipse RCP  (0) 2013.01.03

system 설계 고려사항

- stable

- scalable

- speedy

- simple

- standard

- social

- security


=> Smart Systems



Engineering Methodology(공학적 접근론,방법론)

1. common work를 efficient하게

2. non common work를 correct하게

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

sunlight highlighter 사용시 < > 입력해야 할 경우  (0) 2013.01.11
Convention over Configuration  (0) 2013.01.05
플랫폼  (0) 2013.01.03
Eclipse RCP  (0) 2013.01.03
튜토리얼 사이트  (0) 2013.01.03

플랫폼 : 소프트웨어를 개발하기위한 필수적인 요소

set of API


플랫폼이 다르다 : package가 다르다.


OS, 언어, 하드웨어 등 포함


Java 플랫폼 : 자바 언어로된 프로그램을 수행하기 위한 환경


자바는 프로그래밍 언어, 플랫폼


JVM 환경만 있으면 어디든지 실행이 가능하다.

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

Convention over Configuration  (0) 2013.01.05
system 설계 고려사항  (0) 2013.01.03
Eclipse RCP  (0) 2013.01.03
튜토리얼 사이트  (0) 2013.01.03
twitter bootstrap  (0) 2013.01.03

rcp : rich client platform


이클립스에 플러그인을 추가할 수 있다.

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

system 설계 고려사항  (0) 2013.01.03
플랫폼  (0) 2013.01.03
튜토리얼 사이트  (0) 2013.01.03
twitter bootstrap  (0) 2013.01.03
블로그 코드 Syntax Higlighting - Sunlight  (0) 2012.06.30

tutorial site


http://w3schools.com


http://docs.oracle.com/javase/tutorial/

'컴퓨터공학 > Tool(IDE, Git, Etc)' 카테고리의 다른 글

플랫폼  (0) 2013.01.03
Eclipse RCP  (0) 2013.01.03
twitter bootstrap  (0) 2013.01.03
블로그 코드 Syntax Higlighting - Sunlight  (0) 2012.06.30
코딩용 폰트 Bitstream Vera Sans Mono - 14.0  (0) 2012.06.30

+ Recent posts