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
| from CustomLogger import CustomLogger | |
| # 최초 한번 실행될 경우에는 __call__의 'Generate new instance' 가 출력되고 CustomLogger의 __init__이 호출된다. | |
| logger = CustomLogger.__call__().get_logger() | |
| logger.info("start logging...") | |
| # 첫번째를 제외한 그 이후에는 'return instance'가 출력되고, init은 호출되지 않는다. (SingletonType class가 객체를 두개 이상 생성하는 것을 제한) | |
| logger = CustomLogger.__call__().get_logger() | |
| logger = CustomLogger.__call__().get_logger() |
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 CSVFileIO | |
| CSVFileIO.write_csv("/home/banana/output.csv", result, ",") | |
| reader = CSVFileIO.read_csv("/home/banana/input.csv", ",") |
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
| #!/bin/bash | |
| LOG_PATH="/home/banana/logs/" | |
| VERSION_ARR=("0.01") | |
| for VERSION in "${VERSION_ARR[@]}" | |
| do | |
| echo "VERSION : " $VERSION | |
| TODAY=`date "+%Y%m%d"` | |
| LS_RESULT=$(ls -1 $LOG_PATH/$VERSION-completed/* | sed -e "s/.log$/.zip/g") |
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
| __author__ = 'jslee' | |
| import sys | |
| import base64 | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import AES | |
| from boto.s3.connection import S3Connection | |
| from boto.s3.connection import OrdinaryCallingFormat | |
| ACCESS_KEY_ID = "<ACCESS_KEY_ID>" |
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
| <% script('/javascripts/app/partials/search.js') %> | |
| <div class="container"> | |
| <div class="row text-center search-bar"> | |
| <div> | |
| <input type="text" id="search_keyword" class="form-control" <%if(params.searchKeyword != undefined) {%> value="<%=params.searchKeyword%>" <%}%>> | |
| </div> | |
| <div> | |
| <a href="javascript:;" id="search" class="btn btn-default btn-search">검색</a> | |
| </div> | |
| </div> |
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 banana on 8/15/16. | |
| */ | |
| requirejs([ "common" ], function () { | |
| requirejs([ "loglevel" ], function (log) { | |
| var _searchBtnRef = null; | |
| var _searchKeywordRef = null; | |
| var _initView = function() { | |
| _searchKeywordRef = $("#search_keyword"); |
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
| <div class="loader"> | |
| </div> | |
| <div class="container" style="display:none;"> | |
| <h1>로딩 후 화면</h1> | |
| <div> |
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
| .loader { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| z-index: 1; | |
| width: 150px; | |
| height: 150px; | |
| margin: -75px 0 0 -75px; | |
| border: 16px solid #f3f3f3; | |
| border-radius: 50%; |
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
| var _showPage = function() { | |
| var loader = $("div.loader"); | |
| var container = $("div.container"); | |
| loader.css("display","none"); | |
| container.css("display","block"); | |
| }; |
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 argparse | |
| FLAGS = None | |
| def main(): | |
| print FLAGS.input_dir | |
| print FLAGS.output_dir | |
| if __name__ == '__main__': | |
| parser = argparse.ArgumentParser() |