View logging_by_level.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING:root:This is a warning message | |
ERROR:root:This is an error message | |
CRITICAL:root:This is a critical message |
View postactivate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="$_OLD_VIRTUAL_PS1" | |
_OLD_RPROMPT="$RPROMPT" | |
RPROMPT="%{${fg_bold[grey]}%}(%{${fg[grey]}%}`basename \"$VIRTUAL_ENV\"`%{${fg_bold[grey]}%})%{${reset_color}%} $RPROMPT" |
View .zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=~/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Intellij ### | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff: | |
.idea/ | |
.idea/**/workspace.xml | |
.idea/**/tasks.xml | |
.idea/dictionaries |
View .condarc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# channel locations. These override conda defaults, i.e., conda will | |
# search *only* the channels listed here, in the order given. Use "defaults" to | |
# automatically include all default channels. Non-url channels will be | |
# interpreted as binstar usernames (this can be changed by modifying the | |
# channel_alias key; see below). | |
# channels: | |
# - <binstar_username> | |
# - http://some.custom/channel | |
# - file:///some/local/directory | |
# - defaults |
View Neovim configuration files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Neovim Configuration | |
==================== | |
# Structure | |
- ~/.config/nvim/ | |
- init.vim | |
- backups/ | |
- swaps/ | |
- undo/ | |
- colors/ |
View crud_mysql.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymysql | |
def db_connection(): | |
db = pymysql.connect("localhost", "root", "", "djangogirls") # host, user, password, db | |
return db | |
def select(): | |
"""CRUD - Reading""" |
View matplotlib_Korean.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
import matplotlib | |
import matplotlib.font_manager | |
# 폰트 이름 알아내기 | |
print([font.name for font in matplotlib.font_manager.fontManager.ttflist]) | |
# Setting Korean Font | |
matplotlib.rc('font', family='YuGothic') |
View environvar.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
""" | |
settings 유의사항 | |
1. Development와 Production을 다르게 구성하기 | |
1-1. DATABASE | |
1-2. SECRET_KEY: Production에서는 시스템 환경변수로 | |
1-3. DEBUG | |
virtualenvwrapper를 이용해 환경변수 세팅하기 예제 | |
1. postactivate |