from PIL import Image | |
import numpy as np | |
from pathlib import Path | |
def is_text_line(line_array, threshold=240): | |
"""判断是否是文本行(非空白行)""" | |
# 如果平均像素值接近白色,认为是空白行 | |
return np.mean(line_array) < threshold |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import matplotlib | |
from matplotlib.font_manager import FontProperties | |
import pandas as pd | |
from sklearn.metrics import mean_squared_error | |
# 指定支持中文的字体路径,这里假设你已经下载了字体文件并放在了相应的路径下 | |
# 请替换成实际字体文件的路径,例如下面的路径只是示例 | |
font_path = '/Users/kent/Downloads/misans/MiSans-Normal.ttf' |
Cookie
Get Weight
fetch('https://connect.garmin.com/modern/proxy/userprofile-service/userprofile/personal-information/weightWithOutbound/filterByDay?from=1477526400000&until=1509148800000&_=1511026934431').then((result) => {console.log(result)})
Blog post with slightly more detail can be found here. If you want to just get to it, read on.
I (very) recently decided to reimplement GA in my site, and found that existing implementation in Hugo was not compatible with GA4's new Measurement ID. This is an easy way to drop your Measurement ID into your site. I'm not going to go into how to sign up for GA.
This implementation requires that you create a site parameter for analytics, create a partial, and call the partial. I tweaked the names of the parameters and files so they didn't collide with the built-in hugo code.
Place the GoogleAnalyicsID (Measurement ID) in config.toml
within [params]
.
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
- https://education.github.com/pack GitHub学生包,需用教育邮箱验证。各种福利,可从DigitalOcean上手
- https://github.com/ripienaar/free-for-dev 本文尽量不与此项目重复
- https://github.com/AchoArnold/discount-for-student-dev
- https://github.com/ivmm/Student-resources