Skip to content

Instantly share code, notes, and snippets.

View slaysd's full-sized avatar
🍀
Working at Naver Clova AI

Jeeseung Han slaysd

🍀
Working at Naver Clova AI
View GitHub Profile
@slaysd
slaysd / progressbar.py
Created September 22, 2017 05:06
파이썬 프로그래스바 함수
# Print iterations progress
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█'):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
suffix - Optional : suffix string (Str)
decimals - Optional : positive number of decimals in percent complete (Int)
@slaysd
slaysd / gist:febd79ed93b778fadb8e18509536e3f7
Created August 12, 2017 13:40
파이썬 기초 환경 구축 시 bash쉘에 등록 해야할 것들
eval "$(pyenv init -)"
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
echo 'source /usr/local/opt/autoenv/activate.sh' >> ~/.bash_profile
@slaysd
slaysd / pom.xml
Created April 30, 2017 10:11
메이븐 실행가능 Jar 빌드 플러그인
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.example</mainClass>
</manifest>