Skip to content

Instantly share code, notes, and snippets.

View t0mst0ne's full-sized avatar

ChenChang Shih t0mst0ne

View GitHub Profile
非常歡迎您光臨「東華魚網站」(以下簡稱本網站),為了讓您能夠安心使用本網站的各項服務與資訊,特此向您說明本網站的隱私權保護政策,以保障您的權益,請您詳閱下列內容:
一、隱私權保護政策的適用範圍
隱私權保護政策內容,包括本網站如何處理在您使用網站服務時收集到的個人識別資料。隱私權保護政策不適用於本網站以外的相關連結網站,也不適用於非本網站所委託或參與管理的人員。
二、個人資料的蒐集、處理及利用方式
當您造訪本網站或使用本網站所提供之功能服務時,我們將視該服務功能性質,請您提供必要的個人資料,並在該特定目的範圍內處理及利用您的個人資料;非經您書面同意,本網站不會將個人資料用於其他用途。
本網站在您使用服務信箱、問卷調查等互動性功能時,會保留您所提供的姓名、電子郵件地址、聯絡方式及使用時間等。
於一般瀏覽時,伺服器會自行記錄相關行徑,包括您使用連線設備的IP位址、使用時間、使用的瀏覽器、瀏覽及點選資料記錄等,做為我們增進網站服務的參考依據,此記錄為內部應用,決不對外公佈。
為提供精確的服務,我們會將收集的問卷調查內容進行統計與分析,分析結果之統計數據或說明文字呈現,除供內部研究外,我們會視需要公佈統計數據及說明文字,但不涉及特定個人之資料。
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
import numpy as np
from datetime import datetime, timedelta
from IPython.display import Image
%matplotlib inline
plt.rcParams["font.family"] = "SimHei"
figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')
記憶力
[0]沒有記憶力減退、或稍微減退、沒有經常性健忘。
[0.5]經常性的輕度遺忘,事情只能部分想起"良性"健忘症。
[1]中度記憶力減退;對最近的事尤其不容易記得;會影響日常生活。
[2]嚴重記憶力減退,只有高度重複學過的事物才會記得;新學會的東西都很快會忘記。
[3]記憶力嚴重減退,只能記得片段。
定向感
[0]完全能定向。
突然發病(Abrupt)( 2 )
漸梯式惡化(Stepwise deterioration)( 1 )
波動起伏的病程(Fluctuating course) ( 2 )
夜間意識混淆(Noctural confusion)( 1 )
憂鬱症狀(Deprssion)( 1 )
CC: Temporal headache for 7 days.
Location: Radiation:
Pattern: Thrombbing
Aura : Lightening (-), zigzag (-)
Provocating factors: cold weather(-), postual change(-)
Reliving factores: rest(+),lying(+)
[Migrain Criteria]
5 or more attacks \
4 hours to 3 days in duration \
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
service = webdriver.chrome.service.Service('/usr/bin/chromedriver')
service.start()
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options = options.to_capabilities()
driver = webdriver.Remote(service.service_url, options)
driver.get('https://google.com')
import requests
from bs4 import BeautifulSoup
url = 'https://en.wikipedia.org/w/index.php' + \
'?title=List_of_Game_of_Thrones_episodes&oldid=802553687'
r = requests.get(url)
html_contents = r.text
html_soup = BeautifulSoup(html_contents, 'html.parser')
@t0mst0ne
t0mst0ne / combine.py
Created March 30, 2018 02:47 — forked from glombard/combine.py
Merging 4 images into one with Python and PIL/Pillow
# Combine multiple images into one.
#
# To install the Pillow module on Mac OS X:
#
# $ xcode-select --install
# $ brew install libtiff libjpeg webp little-cms2
# $ pip install Pillow
#
from __future__ import print_function
@t0mst0ne
t0mst0ne / interactive_plot.py
Created March 21, 2018 14:17 — forked from braaannigan/interactive_plot.py
Interactive plots with holoviews in a jupyter notebook - needs to be in two separate code cells, see text for details
# The following must be executed in a jupyter notebook rather than a shell environment.
# Use numpy to work with arrays
import numpy as np
# Use scipy.stats to do plot some statistical data
import scipy.stats as stats
import holoviews as hv
# Holoviews builds on top of either the Matplotlib or Bokeh plotting library. Choose to use Bokeh
# in these plots as interactive plots work very well with Bokeh
hv.notebook_extension('bokeh')
@t0mst0ne
t0mst0ne / readme.md
Created February 25, 2018 02:11 — forked from baraldilorenzo/readme.md
VGG-19 pre-trained model for Keras

##VGG19 model for Keras

This is the Keras model of the 19-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman