본문 바로가기

[git] code school - try git 노트 https://www.codeschool.com/account/courses/try-git git init- 빈 git repo 만듦 git status- 마지막 commit 이후로 바뀐거나 새로운 파일 있는지 확인 커밋 순서1. git add -A . or git add --all or git add 파일이름 or git add *.js- -A는 all을, .(dot)은 현재 디렉토리를 의미- 아직 repository에 올린 것은 아님. (staging area에 있다고 말함) commit 할 준비가 되었다는 소리임.- git add *.js 는 현재 디렉토리만 해당 git add "*.js"는 프로젝트 모든 js파일 해당 2. git commit -m 'Add my file'- 로컬 repo에 커밋-.. 더보기
[mongodb] MongoDB university - M101JS week4 : Indexes 몽고db Index Creation documents가 디스크에 저장될 때 특정한 순서가 없다.인덱스가 없는 경우에 쿼리를 하면 콜렉션안의 모든 document를 스캔히야 한다. document가 많으면 작업량이 상당하므로 index를 만드는 것이 좋다. 인덱스 만들기db.students.createIndex({"student_id": 1, "class_id": -1}); 인덱스보기db.students.getIndexes(); 인덱스삭제db.students.dropIndex({student_id: 1}) Multikey Indexesdb.foo.createIndex({a: 1, b:1}); - a, b가 둘다 배열이면 안 됨(??)db.foo.explain().find({a:1}); -자세하기보기(사용한.. 더보기
IE rgba: background에 opacity 적용 #header { position: fixed; min-width: 800px; height: 60px; top: 0; left: 0; right: 0; background: rgb(255,255,255); background: rgba(255,255,255, 0.8); /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; /* IE 5-7 */ filter: alpha(opacity=80); z-index: 9;} 더보기
IE7 이하 li disply: inline-block .category > ul > li { position: relative; display: -moz-inline-stack; display: inline-block; height: 50px; padding: 0 40px; zoom: 1; *display: inline;} 더보기
[TED] David McCandless - The beauty of data visualization 강연자 회사 주소: InformationIsBeautiful.net 더보기