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
| // need jquery | |
| function printLog(str) { | |
| if(!$.browser.msie) { | |
| console.log(str); | |
| } | |
| }; | |
| function printWarn(str) { | |
| if(!$.browser.msie) { | |
| console.warn(str); | |
| } |
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
| // Cookie取得 | |
| // key:Cookie key | |
| // return: Cookie value. if not found, false. | |
| function getCookie(key){ | |
| if(key){ | |
| var cookieData = document.cookie + ";"; | |
| var startPoint1 = cookieData.indexOf(key); | |
| var startPoint2 = cookieData.indexOf("=",startPoint1)+1; | |
| var endPoint = cookieData.indexOf(";",startPoint1); | |
| if(startPoint2 < endPoint && startPoint1 > -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
| // check ios | |
| // return: true=ios. false=other. | |
| function isIOS() { | |
| var ua = navigator.userAgent; | |
| var res = false; | |
| if(ua.indexOf('iPhone') > -1 || ua.indexOf('iPad') > -1 || ua.indexOf('iPod') > -1) { | |
| res = true; | |
| } | |
| return res; | |
| }; |
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
| /** | |
| * 元利均等返済年間返済額算出 | |
| * 金利の目安 | |
| * http://www.flat35.com/kinri/index.php/rates/top (2012/05現在) | |
| * 【フラット35】 | |
| * 返済期間が21年以上35年以下の場合の金利幅 2.070%~3.020% | |
| * (取扱金融機関が提供する金利で最も多いのは2.070%) | |
| * 返済期間が20年以下の場合の金利幅 1.760%~2.710% | |
| * (取扱金融機関が提供する金利で最も多いのは1.760%) | |
| * 【フラット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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # upload (bin)file to Google Docs. | |
| # | |
| import sys | |
| import datetime | |
| import os | |
| import os.path | |
| import time |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import datetime | |
| import os | |
| import os.path | |
| import time | |
| import atom |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| from openpyxl import load_workbook | |
| if __name__ == "__main__": | |
| print 'start.' | |
| print '' | |
| wb = load_workbook('load_test.xlsx') |