Skip to content

Instantly share code, notes, and snippets.

@doowonee
doowonee / name-changer.py
Created November 25, 2019 17:20
순차적으로 파일을 다운 받을때 기존 파일명을 삭제하고 순번을 매기는 스크립트
import re, os
PATH = 'd:/downloads'
regex = re.compile(r'\d{3}-\d{1}')
files = []
numbers = []
# r=root, d=directories, f = files
for r, d, f in os.walk(PATH):
@doowonee
doowonee / .zshenv
Created July 6, 2019 13:09
ubuntu enviroment
# 내가 만든 앱이 사용하는 것
export ERP_API_DEBUG=debug
# pip 사용 하면서 설정
export PATH=$HOME/.local/bin:$PATH
# 내 취향
export EDITOR='vi'
# pyenv 사용 하면서 설정
@doowonee
doowonee / ccc.ipynb
Last active May 31, 2019 08:18
첫 데이터 분석
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@doowonee
doowonee / .gitconfig
Last active August 23, 2020 05:40
my git configuration file
[user]
email = the1900.me@gmail.com
name = the1900
[core]
editor = code --wait
quotepath = false # git status시 한글 꺠짐 방지
[credential]
helper = store # Windows 는 안됨 평문으로 인증 정보 저장되니 주의!
[diff]
tool = vscode
@doowonee
doowonee / log_parer.py
Created May 13, 2018 10:32
히토미 다운로더 로그 파서
'''
히토미 다운로더 로그 포맷을 파싱하여 다운 받았던 주소들을 한줄씩 출력
'''
import re, os
FILE = 'd:/newdesktop/target.txt'
result = set()
with open(FILE, 'r', encoding = 'utf-8') as f:
@doowonee
doowonee / file-mapper.py
Created May 5, 2018 15:04
텍스트 파일을 파싱하고 실제 파일명을 변경해주는 스크립트
'''
윈도우에서만 사용 가능함
이미지 태그가 존재하는 텍스트 파일을 파싱해서 그에 맞는 이미지 파일을 순서에 맞게 파일명을 변경해주는 스크립트.
텍스트파일에는 있지만 실제 파일이 없는 경우 표준출력으로 출력함
'''
import re, os
# 이미지파일들이 존재 하는 경로