This file contains 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
% easy adding of ORCiDs | |
\usepackage{scalerel} | |
\usepackage{tikz} | |
\usetikzlibrary{svg.path} | |
\definecolor{orcidlogocol}{HTML}{A6CE39} | |
\tikzset{ | |
orcidlogo/.pic={ | |
\fill[orcidlogocol] svg{M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z}; | |
\fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z} | |
svg{M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5c34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z} |
This file contains 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 time | |
def timer(func): | |
def wrapper(*args, **kwargs): | |
# start the timer | |
start_time = time.time() | |
# call the decorated function | |
result = func(*args, **kwargs) | |
# remeasure the time | |
end_time = time.time() |
This file contains 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
<h1> <span><笔记标题></span></h1>\n <hr/> | |
</span></h1>\n <h2 style="color: #1B5E20; background-color:#F1F8E9;">💡 Meta Data | |
</h2> <table> | |
<tr> | |
<th style="background-color:#dbeedd;"> | |
<p style="text-align: left">Title </p> | |
</th> | |
<td style="background-color:#dbeedd;">${topItem.getField('title')} | |
</td> | |
</tr> |
This file contains 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 requests | |
import json | |
import winsound | |
import time | |
def alert(): | |
#print('aaa') | |
times = 5 | |
while(times>0): | |
winsound.MessageBeep() |
This file contains 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 requests | |
import zipfile | |
import tempfile | |
from lxml import etree | |
def get_data(url): | |
#url = "https://energyplus.net/weather-download/asia_wmo_region_2/CHN//CHN_Anhui.Huoshan.583140_CSWD/all" | |
response = requests.get(url) | |
return url, response.content | |
def unzip(filename,data): |