**Terminal Commands **
ls
: 목록 보여줌
ls-al
: 전체 목록 보여줌, 숨김 파일 포함
vi .git/config
: open configuration file in Git via VI
Git Commands
- Clone remote repository to Local as 'origin'
git remote add 'origin' 'id'
ex) git remote add origin https://github.com/jypark0407/TWL
Clone GitHub Repository to Local as 'upstream'
- Check the source of remote repository
git remote -v
- Check the status of remote repository
vi (filename)
: Open the file with vi
git status
: check the untracked files to commit
- Commit changes
git commit -m "(message)"
: commit with message "(message)"
- Push local change to remote repository
git push -u origin master
(origin --> master)
- Create branch and set it as default
git checkout -b 2018
: Create branch '2018' and move to the branch
- Check branch
git branch
- Change branch to 'master'
git checkout master
: change branch to 'master'
- add + commit + fetch + merge
git pull --rebase
- Others
git diff
: see the difference
git add .
add all the files (put all the unstaged files into the staged)
-m
-v
-u
: upstream?
-b
-f
: force push
-al
--v
rm -rf /tutorial
: remove tutorial folder
~/Downloads
/ : Setting path, add ~ to simplify the path
https://www.macworld.com/article/2082021/master-the-command-line-deleting-files-and-folders.html
https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches
**Useful **
clean : clean the prompts
can register alias
for VI
w
: save the file
q
: quit
Glossaries
Branch : You create branch to create a working copy while the master branch is in works (after you make changes, pull the branch into the master and merge)
Making branches make collaboration easier and convenient by assigning users their own working copy without interrupting the working original.
example) Game needs security patch and an update in its login feature.
Security Patch : Create security branch from the master branch
Upstream : Generally speaking, upstream is where you cloned from (the origin)
준비) 윈도우 유저는 C에 dataitgirls 라는 폴더를 생성합니다. 앞으로 우리가 실습하는 코드는 여기에 담아 둘 예정입니다.맥 유저는 ~/ 경로에 같은 이름의 폴더를 생성합니다.만약 미리 클론 받아 놓았다면 해당 폴더를 통째로 옮깁니다.폴더를 옮길때는 다음의 명령어를 통해 옮겨요.아직 git bash 에 익숙하지 않다면 탐색기 혹은 finder를 열어 드래그앤드롭으로 옮겨주어도 됩니다.
mv -rf 이전폴더경로 옮길폴더경로
특강 - 김슬 (닷페이스, 뉴스타파) sl@dotface.kr
-
데이터 분석 왜 배우나?
-
- 무엇을 배우고자 하는 본인이 호기심이 있어야함
-
시빅 해킹? (Civic Hacking)
- 공공의 문제를 해결하거나 다루는 것.
ex) 파리 테러 - 사진들의 분류
scikit-learn : python library for clustering
-
Nate Silver's https://fivethirtyeight.com/ & The Signal and the Noise
-
여론조사 - 어디를 믿을 수 있는가?
- Open Data Day
- March 5-6 every year
- 존맛국회
- ProPublica's analysis on recidivism algorithm - https://www.propublica.org/article/how-we-analyzed-the-compas-recidivism-algorithm
-
통계 : 불완전한 학문이여서 잘못된 케이스도 많이 나옴.
"To solve an interesting problem, start by solving a problem that interest you."
시빅 해킹 : 모두에게 필요하고 중요한 (주로 정부, 정치 부분) 정보를 다루는 것 같음. 데이터 저널리즘과도 깊은 관계가 있음. 기자들도 이런 거를 알면 좋을텐데 기자와 개발자가 생각하는 방식이 많이 다른듯... (예외는 있지만)
##과제
헌법 마치기/아나콘다 설치