Skip to content

Instantly share code, notes, and snippets.

View abc873693's full-sized avatar
🏠
Working from home

RainVisitor abc873693

🏠
Working from home
View GitHub Profile
@abc873693
abc873693 / taiwan_districts.json
Last active August 28, 2024 06:32
台灣行政區郵遞區號 JSON
[
{
"districts": [
{
"zip": "100",
"name": "中正區"
},
{
"zip": "103",
"name": "大同區"
@abc873693
abc873693 / taiwan district zip JSON array(no break no white space)
Last active March 30, 2018 14:28
台灣行政區郵遞區號 JSON 無空白 無換行
[{"districts":[{"zip":"100","name":"中正區"},{"zip":"103","name":"大同區"},{"zip":"104","name":"中山區"},{"zip":"105","name":"松山區"},{"zip":"106","name":"大安區"},{"zip":"108","name":"萬華區"},{"zip":"110","name":"信義區"},{"zip":"111","name":"士林區"},{"zip":"112","name":"北投區"},{"zip":"114","name":"內湖區"},{"zip":"115","name":"南港區"},{"zip":"116","name":"文山區"}],"name":"臺北市"},{"districts":[{"zip":"200","name":"仁愛區"},{"zip":"201","name":"信義區"},{"zip":"202","name":"中正區"},{"zip":"203","name":"中山區"},{"zip":"204","name":"安樂區"},{"zip":"205","name":"暖暖區"},{"zip":"206","name":"七堵區"}],"name":"基隆市"},{"districts":[{"zip":"207","name":"萬里區"},{"zip":"208","name":"金山區"},{"zip":"220","name":"板橋區"},{"zip":"221","name":"汐止區"},{"zip":"222","name":"深坑區"},{"zip":"223","name":"石碇區"},{"zip":"224","name":"瑞芳區"},{"zip":"226","name":"平溪區"},{"zip":"227","name":"雙溪區"},{"zip":"228","name":"貢寮區"},{"zip":"231","name":"新店區"},{"zip":"232","name":"坪林區"},{"zip":"233","name":"烏來區"},{"zip":"234","name":"永和區"},{"zip":"235","name":"中和區"},{"zip":"236","name":"土城區"},{"zip"
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
web_1 | return self.wsgi_app(environ, start_response)
web_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
web_1 | response = self.handle_exception(e)
web_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
web_1 | reraise(exc_type, exc_value, tb)
web_1 | File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
web_1 | raise value
web_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
[{"week":"預備週","events":["(9/4 ~ 9/5) 新生課程初選","(9/7) 前一學期研究所畢業生離校手續截止日"]},{"week":"第一週","events":["(9/10) 第一學期註冊日、開始上課","(9/10) 休退學,學雜費全額退費","(9/10) 研究生申請學位考試","(9/10 ~ 9/14) 學分數抵免/輔系、雙主修申請","(9/11 ~ 10/19) 休退學,學雜費退還三分之二","(9/18 ~ 9/21) 課程加退選"]},{"week":"第二週","events":["(9/18 ~ 9/21) 課程加退選"]},{"week":"第三週","events":["(9/24) 中秋節(放假一天)","(9/25 ~ 10/5) 轉部申請"]},{"week":"第五週","events":["(10/10) 國慶日(放假一天)"]},{"week":"第六週","events":["(10/15 ~ 12/28) 申請課程停修","(10/19) 申請休退學者,學雜費退還三分之二","(10/22) 申請休退學者,學雜費退還三分之一"]},{"week":"第七週","events":["(10/22) 申請休退學者,學雜費退還三分之一"]},{"week":"第九週","events":["(11/5 ~ 11/9) 第一學期期中考試"]},{"week":"第十一週","events":["(11/19 ~ 11/30) 轉系申請"]},{"week":"第十二週","events":["(11/30) 申請休退學者,學雜費退還三分之一"]},{"week":"第十三週","events":["(12/8) 校慶日(放假一天)"]},{"week":"第十五週","events":["(12/22) 開國紀念日彈性放假補行上班上課"]},{"week":"第十七週","events":["(12/31) 開國紀念日彈性放假一天","(12/31) 研究生申請學位考試截止日","(1/1) 開國紀念日(放假一天)","(1/2 ~ 1/25)第二學期課程初選"]},{"week":"第十八週","events":["(1/7 ~ 1/11) 第一學期期末考試","(1/11) 本學期休退學申請截止日","(1/7 ~ 1/20)教師學期成績登錄
[{"week": "預備週", "events": ["(2/1) 107 學年度第二學期開始/開學日前休退學,免繳學雜費 ", "(2/4 ~ 2/7) 除夕及春節假期 ", "(2/8) 春節假期彈性放假一天 ", "(2/15) 前一學期研究所畢業生離校手續截止日 "]}, {"week": "第一週", "events": ["(2/18) 第二學期註冊日、開始上課 ", "(2/18) 休退學,學雜費全額退費 ", "(2/18) 研究生申請學位考試 ", "(2/18 ~ 2/22) 學分數抵免/輔系、雙主修申請 ", "(2/19) 休退學,學雜費退還三分之二 ", "(2/23) 和平紀念日彈性放假補行上班上課 "]}, {"week": "第二週", "events": ["(2/26 ~ 3/4) 第二學期課程加退選 ", "(2/28) 和平紀念日(放假一天) ", "(3/1) 和平紀念日彈性放假一天 "]}, {"week": "第三週", "events": ["(3/4 ~ 3/15) 轉部申請 "]}, {"week": "第六週", "events": ["(3/25 ~ 6/6) 申請課程停修 ", "(3/29) 申請休退學者,學雜費退還三分之二 "]}, {"week": "第七週", "events": ["(4/1) 申請休退學者,學雜費退還三分之一 ", "(4/4) 兒童節(放假一天) ", "(4/5) 民族掃墓節(放假一天) ", "(4/3 ~ 5/6) 第二學期期中預警調查 "]}, {"week": "第八週", "events": ["(4/8) 校運會補假一天 "]}, {"week": "第九週", "events": ["(4/15 ~ 4/19) 第二學期期中考試 ", "(4/15 ~ 4/28) 教師期中成績登錄 "]}, {"week": "第十一週", "events": ["(4/29 ~ 5/10) 轉系申請 "]}, {"week": "第十二週", "events": ["(5/10) 申請休退學者,學雜費退還三分之一 "]}, {"week": "第十三週", "events": ["(5/13) 申請休退學者,所繳各費均不退還 "]}, {"week": "第十六週", "events": ["(6/7) 端午節(放假
python system.py train self True True
Using TensorFlow backend.
--------------------------------------------------
Loading word list...
word list : 39504
--------------------------------------------------
Load lexicons...
AFINN lexicon : 3474
Sentiment140 lexicon : 62468
Sentistrength lexicon : 2674
AttributeError: 'NoneType' object has no attribute 'xpath'
192.168.96.3 - - [26/Feb/2019:05:35:15 +0000] "GET /latest/ap/semester HTTP/1.1" 500 0 "-" "-"
192.168.96.3 - 1104102146 [26/Feb/2019:05:35:16 +0000] "GET /latest/token HTTP/1.1" 200 280 "-" "Dart/2.1 (dart:io)"
2019-02-26 05:35:16,448 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2019-02-26 05:35:16,450 INFO sqlalchemy.engine.base.Engine SELECT news.id AS news_id, news.title AS news_title, news.content AS news_content, news.link AS news_link, news.image AS news_image, news.weight AS
news_weight
FROM news
2019-02-26 05:35:16,450 INFO sqlalchemy.engine.base.Engine ()
2019-02-26 05:35:16,452 INFO sqlalchemy.engine.base.Engine ROLLBACK
192.168.96.3 - 1104102146 [26/Feb/2019:05:35:16 +0000] "GET /latest/news/all HTTP/1.1" 200 484 "-" "Dart/2.1 (dart:io)"
968:C 26 Feb 2019 05:02:24.127 * DB saved on disk
968:C 26 Feb 2019 05:02:24.128 * RDB: 0 MB of memory used by copy-on-write
1:M 26 Feb 2019 05:02:24.193 * Background saving terminated with success
1:M 26 Feb 2019 05:07:25.027 * 100 changes in 300 seconds. Saving...
1:M 26 Feb 2019 05:07:25.028 * Background saving started by pid 969
969:C 26 Feb 2019 05:07:25.071 * DB saved on disk
969:C 26 Feb 2019 05:07:25.072 * RDB: 0 MB of memory used by copy-on-write
1:M 26 Feb 2019 05:07:25.129 * Background saving terminated with success
1:M 26 Feb 2019 05:12:26.082 * 100 changes in 300 seconds. Saving...
1:M 26 Feb 2019 05:12:26.083 * Background saving started by pid 970
{
"status": 200,
"messages": "",
"leaves": [{
"leave_sheet_id": "B260089",
"date": "107/10/24",
"instructors_comment": "導師意見:核准",
"leave_sections": [{
"section": "5",
"reason": "事"