科学上网-巧用镜像站
git clone 代理
git config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy https://127.0.0.1:1081
# 查看代理配置
git config --global -e
# 取消代理
git config --global --unset http.proxygit config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy https://127.0.0.1:1081
# 查看代理配置
git config --global -e
# 取消代理
git config --global --unset http.proxy这几个镜像站真香啊, 包括了很多开源镜像, 包括Elasticsearch, Android SDK,OS镜像,网络授时NTP等, 这部分阔以免去翻墙打洞的烦恼啦。

自定义连接URL:jdbc:sqlite:/data/testdb.sqlite3
自定义驱动类型 org.sqlite.JDBC


自惜别年终,相约从容,庆元夜之火红,守佳节之欢融。
奈何疫情冲冲,来势汹汹,似山海之相隔,如日月之无穷。
纵牵念之深重,为时势之摆弄。
然风起纸鸢,牵牵不断,且思且盼,情意绵绵。
靠近爱人
我想你,当阳光洒落海面,如同你在我心中激起涟漪。
我想你,当月光映入清泉,如同你在我脑海留下足迹。
我看到你,
当朦胧的尘埃飞舞在遥远的山脊,
当流浪的行人徘徊于小桥的沉寂。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>浮窗效果</title>
<style>
* {
margin: 0;
padding: 0;
}
#box {
width: 200px;
height: 200px;
left: 0;
top: 0;
border: 1px solid #eee;
box-shadow: 0 0 5px #ccc;
position: absolute;
}
#box h2 {
padding: 8px 4px;
font-size: 16px;
color: #666666;
}
#box p {
padding: 8px 4px;
font-size: 12px;
color: #a9a9a9;
line-height: 20px;
}
</style>
</head>
<body>
<div id="box">
<img src="octocat.png" alt="章鱼猫"/>
<p><a href="#">章鱼猫</a></p>
</div>
<script>
let box = document.getElementById('box');
let speedX = 15, speedY = 12;
//水平方向运动最大值
let
maxL = document.documentElement.clientWidth - box.offsetWidth;
maxT = document.documentElement.clientHeight - box.offsetHeight;
let timer = null;
box.onmouseenter = function () {
clearInterval(timer);
};
box.onmouseleave = function () {
autoMove();
};
autoMove();
function autoMove() {
timer = setInterval(() => {
let
nextX = box.offsetLeft + speedX;
nextY = box.offsetTop + speedY;
//左侧边界
if (nextX <= 0) {
nextX = 0;
speedX *= -1;
}
//上侧边界
if (nextY <= 0) {
nextY = 0;
speedY *= -1;
}
//右侧边界
if (nextX >= maxL) {
nextX = maxL;
speedX *= -1;
}
//底侧边界
if (nextY >= maxT) {
nextY = maxT;
speedY *= -1;
}
box.style.left = nextX + 'px';
box.style.top = nextY + 'px';
}, 80);
}
</script>
</body>
</html><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>飘窗效果</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px
}
#ad {
position: absolute;
left: 0px;
top: 0px;
}
</style>
</head>
<body>
<div id="ad"><img src="octocat.png" alt="章鱼猫"/>
<p><a href="#">章鱼猫</a></p></div>
</body>
<script type="text/javascript">
//通过ID获取img
ad = document.getElementById("ad");
//定义横纵坐标
x = 0;
y = 0;
//设置初始速度
xv = 1.5;
yv = 1.5;
//根据img横纵坐标位置,设置反方向速度
function fun() {
if (x < 0 || x > window.innerWidth - ad.offsetWidth) {
xv = -xv;
}
if (y < 0 || y > window.innerHeight - ad.offsetHeight) {
yv = -yv;
}
x += xv;
y += yv;
//将xy坐标值赋予img css样式中的left与top
ad.style.left = x + "px";
ad.style.top = y + "px";
}
//定时器调用
mytime = setInterval(fun, 100);
//ad绑定鼠标悬停事件
ad.onmouseover = function () {
//清除定时器
clearInterval(mytime);
}
//鼠标离开,重新触发定时器
ad.onmouseout = function () {
mytime = setInterval(fun, 100);
}</script>
</html>| name | desc |
|---|---|
| Wappalyzer | 网站技术架构分析,分析目标网站所采用的平台构架、网站环境、服务器配置环境、JavaScript框架、编程语言等参数 |
| User-Agent Switcher and Manager | User-Agent 管理 |
| EditThisCookie | Cookie 管理 |
| QR Code Generator | QR Code |
| Tampermonkey | 用户脚本管理器 greasyfork |
| SwitchyOmega | 代理设置工具 |
| Vimum | 使用vim键位操作浏览器 |
| Video Download Professional | 媒体下载工具 |
| highlight multiple | 多关键词高亮 |
data = {"column_name":["name", "age", "sex"],
"column": [["Jack", "25", "male"],
["Rebot","18", "male"]]}
col_ks = data.get("column_name")
col_vs = data.get("column")
def dict_to_table(ks, vs):
"""
desc: dict2html_table
"""
th = ''
for name in ks:
th = th + '<th>' + name + '</th>'
trth = '<tr>' + th + '</tr>'
trtd = ''
for tds in vs:
tdss = ''
for td in tds:
tdss = tdss + '<td>' + str(td) + '</td>'
tdss = '<tr>' + tdss + '</tr>'
trtd = trtd + tdss
return '<table>' + trth + trtd + '</table>'
print(dict_to_table(col_ks, col_vs))
# <table><tr><th>name</th><th>age</th><th>sex</th></tr><tr><td>Jack</td><td>25</td><td>male</td></tr><tr><td>Rebot</td><td>18</td><td>male</td></tr></table>| name | age | sex |
|---|---|---|
| Jack | 25 | male |
| Rebot | 18 | male |

元数据是描述其它数据的数据(data about other data), 比如一张图片是图像数据,那么图片的拍摄时间,拍摄地点等就是它的元数据。

从2014年起,我的博客先后经历了博客第三方平台博客园,Wordpress,Django 框架自建, Tornado框架自建,Pelican 静态博客框架及现在使用的Hexo静态博客框架。 可谓是第三方,动静结合,都经历过了, 但最终还是被爆表的颜值主题和易用性强大的Hexo所深深折服 ,Hexo真香ヾ(o◕∀◕)ノヾ!