Skip to content

Instantly share code, notes, and snippets.

View initialkommit's full-sized avatar

bright initialkommit

  • Kakao Entertainment
  • Pangyo
View GitHub Profile
@initialkommit
initialkommit / logging_by_level.out
Last active November 25, 2018 08:31
logging by level
WARNING:root:This is a warning message
ERROR:root:This is an error message
CRITICAL:root:This is a critical message
@initialkommit
initialkommit / postactivate
Created May 22, 2018 14:11
virtualenv postactivate/postdeactivate
PS1="$_OLD_VIRTUAL_PS1"
_OLD_RPROMPT="$RPROMPT"
RPROMPT="%{${fg_bold[grey]}%}(%{${fg[grey]}%}`basename \"$VIRTUAL_ENV\"`%{${fg_bold[grey]}%})%{${reset_color}%} $RPROMPT"
@initialkommit
initialkommit / .zshrc
Last active May 22, 2018 06:42
.zshrc
# 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"
@initialkommit
initialkommit / .gitignore
Created April 29, 2018 06:13
gitignore (IntelliJ, Python, macOS)
### 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
@initialkommit
initialkommit / .condarc
Created April 14, 2018 15:02
Conda Configuration
# 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
@initialkommit
initialkommit / Neovim configuration files
Last active January 3, 2023 21:07
Neovim configuration files
Neovim Configuration
====================
# Structure
- ~/.config/nvim/
- init.vim
- backups/
- swaps/
- undo/
- colors/
@initialkommit
initialkommit / crud_mysql.py
Created August 20, 2016 10:45
CRUD Practice to MySQL
import pymysql
def db_connection():
db = pymysql.connect("localhost", "root", "", "djangogirls") # host, user, password, db
return db
def select():
"""CRUD - Reading"""
# 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')
@initialkommit
initialkommit / environvar.py
Created December 8, 2015 03:04
Django 프로젝트 setting을 위한 함수
# coding: UTF-8
"""
settings 유의사항
1. Development와 Production을 다르게 구성하기
1-1. DATABASE
1-2. SECRET_KEY: Production에서는 시스템 환경변수로
1-3. DEBUG
virtualenvwrapper를 이용해 환경변수 세팅하기 예제
1. postactivate