This file contains hidden or 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
| # Configuration for Alacritty, the GPU enhanced terminal emulator. | |
| # Import additional configuration files | |
| # | |
| # Imports are loaded in order, skipping all missing files, with the importing | |
| # file being loaded last. If a field is already present in a previous import, it | |
| # will be replaced. | |
| # | |
| # All imports must either be absolute paths starting with `/`, or paths relative | |
| # to the user's home directory starting with `~/`. |
This file contains hidden or 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
| 🌞 Morning 563 commits ███████▊░░░░░░░░░░░░░ 37.0% | |
| 🌆 Daytime 341 commits ████▋░░░░░░░░░░░░░░░░ 22.4% | |
| 🌃 Evening 99 commits █▎░░░░░░░░░░░░░░░░░░░ 6.5% | |
| 🌙 Night 520 commits ███████▏░░░░░░░░░░░░░ 34.1% |
This file contains hidden or 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 -*- | |
| from enum import Enum | |
| USER_TYPE = Enum('USER_TYPE', 'user admin super') | |
| print USER_TYPE.user | |
| ''' | |
| >>> <USER_TYPE.user: 1> | |
| ''' |
This file contains hidden or 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 -*- | |
| def enum(**enums): | |
| return type('Enum', (), enums) | |
| USER_TYPE = enum(user=1, admin=2, super=3) | |
| print USER_TYPE.admin |
This file contains hidden or 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 locale | |
| n = 12345 | |
| # 시스템 기본 locale 적용 | |
| locale.setlocale(locale.LC_ALL, '') | |
| locale.format('%.2f', n, True) | |
| ''' | |
| >>> 12,345.00 | |
| ''' |
This file contains hidden or 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
| '{:,d}'.format(12345) | |
| '{:,.2f}'.format(12345.12) | |
| ''' | |
| >>> 12,345 | |
| >>> 12,345.12 | |
| ''' |
This file contains hidden or 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
| /* | |
| * Created by Claude.Seo | |
| * 2016.11.23 | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| class Restraunt { | |
| private: |
This file contains hidden or 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 requests | |
| BASE_URL = 'https://...' | |
| success_count = 0 | |
| FILE_LIST = [ | |
| '/external/css/font-awesome/font-awesome-4.6.1.min.css', | |
| '/external/css/jqueryui/jquery-ui-1.11.4.min.css', | |
| ] |
This file contains hidden or 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 os | |
| import re | |
| import requests | |
| SEARCH_FOLDER='./app' | |
| def download_file(url): | |
| local_filename = url.split('/')[-1] |
This file contains hidden or 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 logging | |
| import logging.handlers | |
| logger = logging.getLogger('mylogger') | |
| logger.setLevel(logging.DEBUG) | |
| formatter = logging.Formatter('%(levelname)s : %(filename)s : %(lineno)s %(asctime)s : %(message)s') | |
| file_max_size = 10 * 1024 * 1024 |
NewerOlder