일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- mssql
- 라즈베리파이
- Unity
- flutter
- MS-SQL
- 맛집
- GIT
- Linux
- urllib
- 리눅스
- ASP
- python
- 다이어트
- node.js
- sqlite
- PER
- MySQL
- tensorflow
- Excel
- port
- pandas
- PyQt5
- 날짜
- IOS
- swift
- ubuntu
- 유니티
- PyQt
- javascript
- 함수
목록분류 전체보기 (1000)
아미(아름다운미소)
엑셀 다운로드시 셀속성을 변경해줘야 할 경우가 있습니다. 계좌번호 목록 같은경우 숫자 '0'으로 시작하는 경우 그리고 핸드폰번호 목록 같은경우에도 엑셀로 다운 받으면 숫자 '0'이 사라집니다. 이런 경우에는 셀 속성을 텍스트로 지정해주어야 하는데 그런 셀속성 변경하는 style값이 아래와 같은 것들이 있습니다. mso-number-format:\@ - text서식mso-number-format:"0\.000" - 소수점 3자리까지 서식 mso-number-format:"\#\,\#\#0\.000 - 소수점 3자리까지 & 숫자를 3자리씩 끊어서 [,]로 구분하는 서식 mso-number-format:""mm\/dd\yy" - 날짜서식 mso-number-format:":d\\-mmm\\-yyyy" - 날짜..
Python: ftplib를 이용해 FTP server에서 다운로드받기 import ftplib path = 'pub/path/' filename = 'sample.txt' ftp = ftplib.FTP("Server IP") ftp.login("UserName", "Password") ftp.cwd(path) ftp.retrbinary("RETR " + filename, open(filename, 'wb').write) ftp.quit()
[ftplib] python ftp file upload import ftplib filename = "sample.png" ftp = ftplib.FTP() ftp.connect("111.111.111.111","21") #Ftp 주소 Connect(주소 , 포트) ftp.login("id", "password") #login (ID, Password) ftp.cwd("/forder/Test") #파일 전송할 Ftp 주소 (받을 주소) os.chdir(r"D:\\FTP_TEST\\img") #파일 전송 대상의 주소(보내는 주소) my_file = open(filename, 'rb') #Open( ~ ,'r')
1 단계: 연결 합니다 pymssql.connect 함수는 SQL Database에 연결 하는 데 사용 됩니다. import pymssql conn = pymssql.connect(host='yourserver IP', user='youruserid', password='yourpassword', database='dbname') 2 단계: 쿼리를 실행 합니다. (SELECT 예제) import pymssql conn = pymssql.connect(host='yourserver IP', user='youruserid', password='yourpassword', database='dbname') cursor = conn.cursor() cursor.execute('SELECT c.CustomerID,..
remote리모트 저장소 목록로컬 저장소에 등록된 리모트 저장소를 모두 출력하되 단축이름만 표시합니다.git remote리모트 저장소 URL 확인리모트 저장소의 단축이름과 URL을 표시합니다.git remote -v리모트 저장소 URL 바꾸기git remote set-url origin https://github.com/USERNAME/REPOSITORY.git리모트 저장소 추가git remote add 단축이름 주소git remote add remoteRepo https://noritersand@dev.naver.com/git/exlernforscm.git리모트 저장소 살펴보기특정 로컬 저장소의 구체적인 정보(URL, 추적중인 브랜치 등)를 표시합니다.git remote show origin # ori..
pullfetch 후 자동 머지.git pull [리모트저장소] [브랜치]리모트 저장소에서 데이터를 받아온다는 것은 fetch와 같지만 pull은 머지까지 한다는 점이 다릅니다.git pull # origin 리모트 저장소에서 현재 브랜치로 pull git pull origin master브랜치를 명시하지 않으면 (가능한 경우) 현재 브랜치만 자동 머지합니다. 리모트의 저장소명과 브랜치명 생략은 업스트림 브랜치가 설정되어 있을 경우에만 가능합니다.
log커밋 히스토리 조회git logoptions-p: 각 커밋에 적용된 패치(patch, 반영된 변경사항)를 보여줍니다.--stat: 각 커밋에서 수정된 파일의 통계정보를 보여줍니다.--shortstat: --stat 옵션의 결과 중에서 수정한 파일, 추가된 줄, 삭제된 줄만 보여줍니다.--name-only: 커밋 정보중에서 수정된 파일의 목록만 보여줍니다.--name-status: 수정된 파일의 목록을 보여줄 뿐만 아니라 파일을 추가한 것인지, 수정한 것인지, 삭제한 것인지도 보여줍니다.--abbrev-commit: 40자 짜리 SHA-1 체크섬을 전부 보여주는 것이 아니라 처음 몇 자만 보여줍니다.--relative-date: 정확한 시간을 보여주는 것이 아니라 '2주 전'처럼 상대적인 형식으로 보..
diffunstaged와 staged의 비교git diff git diff --check # 충돌 문자가 있거나 공백 에러가 있는지 확인staged와 commited의 비교git diff --cached git diff --staged
config깃 저장소의 설정을 조회/관리하는 명령어. --global 옵션이 없으면 저장소별 설정을 의미합니다.작업자의 이름/이메일 설정git config --global user.name "이름" git config --global user.email "이메일"기본 편집기 설정git config --global core.editor 편집기Diff 도구 설정git config --global merge.tool vimdiff설정 확인git config --list git config -l git config --global --list git config core.editor단축어(alias) 만들기git config --global alias.사용할키워드 '명령어'git config --global a..
clone저장소 복제현재 경로에 로컬 깃 저장소가 될 디렉토리를 만들고 리모트 저장소의 데이터를 모두 받아온다. 디렉토리명을 따로 명시하지 않으면 리모트 저장소의 이름과 동일하게 생성됩니다.git clone ~/Documents/workspace/ex/cal/src git clone file://c:/users/noritersand/noriterGit/localServer localGitRepo git clone https://noritersand@dev.naver.com/git/lernforscm.git naverGitRepo git clone git://github.com/schacon/grit.git gitHubRepo리모트 저장소를 복제하면서 bare repository로 설정git clone -..