Skip to content

Instantly share code, notes, and snippets.

View toomore's full-sized avatar
:octocat:
coding …

Toomore Chiang toomore

:octocat:
coding …
View GitHub Profile
@toomore
toomore / offline_mil.py
Created August 27, 2011 12:26
退伍計算
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from datetime import timedelta
intime = datetime(2011,02,15) # 入伍時間
outtime = datetime(2012,01,16) # 退伍時間
def cd(d):
''' 倒數天數 '''
@toomore
toomore / countdown_time.py
Created November 5, 2010 17:37
countdown time
#!/usr/bin/env python
import datetime
import time
end = datetime.datetime(2010,11,6,11,30)
while 1:
time.sleep(0.8)
print '\r\n' * 30
@toomore
toomore / iiqy
Created September 3, 2010 14:20
抓取最近上市或是上櫃公司資料
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 抓取最近上市或是上櫃公司資料
# By Toomore
class iiqy(object):
def __init__(self, t, page):
'''
t:
@toomore
toomore / getm
Created September 2, 2010 07:21
抓大盤日成交量
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 抓大盤日成交量
# By Toomore
from datetime import datetime, timedelta
import urllib2, logging, csv, re
class ggm(object):
def __init__(self,year,savef):
@toomore
toomore / sm.py
Created November 7, 2009 13:40
screen message
#!/usr/bin/python
# encoding:utf8
# vlshow.py
# Copyright (C) 2006 Joachim Breitner
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#