Skip to content

Commit

Permalink
8.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcowin committed Aug 25, 2023
1 parent 624567a commit f6e94c0
Show file tree
Hide file tree
Showing 13 changed files with 205 additions and 42 deletions.
10 changes: 3 additions & 7 deletions docs/about/geren.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ hide:

<img class="img1" src="https://cn.mcecy.com/image/20230617/4e9361ee7d2d03ecb9de8aef7531db03.jpg">

<p align="center">

<a href="https://muselink.cc/Wcowin" target="_blank">
<img src="https://cn.mcecy.com/image/20230822/24afe45d85f111894db6db75d74d1f1d.png" alt="个人名片" class="img1">
</a>
</p>

<a href="https://muselink.cc/Wcowin" target="_blank">
<img src="https://cn.mcecy.com/image/20230822/24afe45d85f111894db6db75d74d1f1d.png" alt="个人名片" class="img2">
</a>



Expand Down
10 changes: 6 additions & 4 deletions docs/blog/Mkdocs/mkdocs2.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ site_author: 作者名字

## theme部分

### 颜色
### 颜色
![img](https://cn.mcecy.com/image/20230324/0d60c4d1cc6399c654c78769a402ad56.png)
```
theme:
Expand All @@ -194,7 +194,7 @@ theme:
primary后面是网站顶部栏目的颜色(也用于标题、边栏、文本链接和其他几个组件),目前支持下面几个颜色:
![img](https://cn.mcecy.com/image/20230324/84d4a4194cc575c2a76e6e54b25fbf99.png)

### 明暗主题按钮
### 明暗主题按钮
![img](https://cn.mcecy.com/image/20230324/8654dc52f8c278bbf29eb94a8ffcb2da.png)
```
theme:
Expand All @@ -220,7 +220,7 @@ theme:
***
### features
```
features:
features:
- navigation.instant #- header.autohide #自动隐藏
#- announce.dismiss #呈现可标记为由用户读取的临时公告,可以包含一个用于取消当前公告的按钮
- navigation.tracking #地址栏中的 URL 将自动更新为在目录中突出显示的活动锚点
Expand Down Expand Up @@ -408,5 +408,7 @@ javascripts/mathjax.js里有对数学公式的扩展,extra_css里是CSS的知

[JS实现鼠标样式](../websitebeauty/shubiao.md)

[背景特效](../websitebeauty/backgroud.md)
[背景特效](../websitebeauty/backgroud.md)

[自定义网站字体](../websitebeauty/mkdocsfont.md)

2 changes: 1 addition & 1 deletion docs/blog/technique sharing/jiaoben.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ Edge上油猴下载地址:
- [骚扰拦截](https://github.com/AirBashX/UserScript){target="_blank"}
- [自动翻页](https://greasyfork.org/zh-CN/scripts/419215-%E8%87%AA%E5%8A%A8%E6%97%A0%E7%BC%9D%E7%BF%BB%E9%A1%B5){target="_blank"}
- [双语翻译](https://immersive-translate.owenyoung.com/){target="_blank"}
- [KeepChatGPT](https://greasyfork.org/zh-CN/scripts/462804-keepchatgpt){target="_blank"}
- [KeepChatGPT](https://greasyfork.org/zh-CN/scripts/462804-keepchatgpt){target="_blank"} (超好用的 chatGPT扩展脚本)
- [91-plus](https://greasyfork.org/zh-CN/scripts/466107-91-plus){target="_blank"}
148 changes: 148 additions & 0 deletions docs/blog/technique sharing/matlabrose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
![](https://cn.mcecy.com/image/20230825/b1316152f164a424f45ad3bc05cadb5c.png)

```matlab
function roseBouquet
figure('Units','normalized','Position',[.2,.1,.6,.7])
%曲面数据计算 ==============================================================
% 玫瑰部分 -----------------------------------------------------------------
[xr,tr]=meshgrid((0:24)./24,(0:0.5:575)./575.*20.*pi+4*pi);
pr=(pi/2)*exp(-tr./(8*pi));
cr=sin(15*tr)/150;
ur=1-(1-mod(3.6*tr,2*pi)./pi).^4./2+cr;
yr=2*(xr.^2-xr).^2.*sin(pr);
rr=ur.*(xr.*sin(pr)+yr.*cos(pr));
hr=ur.*(xr.*cos(pr)-yr.*sin(pr));
% 百合花部分 ---------------------------------------------------------------
rb=0:.01:1;
tb=linspace(0,2,151);
wb=rb'*((abs((1-mod(tb*5,2))))/2+.3);
xb=wb.*cospi(tb);
yb=wb.*sinpi(tb);
zb=@(a)(-cospi(wb*a)+1).^.2;
Zb=zb(1.2);
g=@(i)i(:,1:30:151)/2;
%颜色映射表 ================================================================
colorList=[0.3300 0.3300 0.6900
0.5300 0.4000 0.6800
0.6800 0.4200 0.6300
0.7800 0.4200 0.5700
0.9100 0.4900 0.4700
0.9600 0.7300 0.4400];
% colorList=[0.9176 0.7490 0.3765
% 0.9294 0.7725 0.4902
% 0.9333 0.7451 0.5961
% 0.8902 0.6980 0.5294
% 0.8784 0.6941 0.6235
% 0.9216 0.7412 0.7529
% 0.8588 0.6039 0.7686
% 0.8510 0.4706 0.6392
% 0.7608 0.2118 0.3569];
colorMapr=setColorByH(hr,colorList);
colorMapb=setColorByH(Zb,colorList.*.4+.6);
function cMap=setColorByH(H,cList)
X=(H-min(min(H)))./(max(max(H))-min(min(H)));
xx=(0:size(cList,1)-1)./(size(cList,1)-1);
y1=cList(:,1);y2=cList(:,2);y3=cList(:,3);
cMap(:,:,1)=interp1(xx,y1,X,'linear');
cMap(:,:,2)=interp1(xx,y2,X,'linear');
cMap(:,:,3)=interp1(xx,y3,X,'linear');
end
% 旋转函数预定义 ===========================================================
yaw_z=72*pi/180;
roll_x_1=pi/8;
roll_x_2=pi/9;
R_z_2=[cos(yaw_z) , -sin(yaw_z) , 0; sin(yaw_z) , cos(yaw_z) , 0; 0, 0, 1];
R_z_1=[cos(yaw_z/2), -sin(yaw_z/2), 0; sin(yaw_z/2), cos(yaw_z/2), 0; 0, 0, 1];
R_z_3=[cos(yaw_z/3), -sin(yaw_z/3), 0; sin(yaw_z/3), cos(yaw_z/3), 0; 0, 0, 1];
R_x_1=[1, 0, 0; 0, cos(roll_x_1), -sin(roll_x_1); 0, sin(roll_x_1), cos(roll_x_1)];
R_x_2=[1, 0, 0; 0, cos(roll_x_2), -sin(roll_x_2); 0, sin(roll_x_2), cos(roll_x_2)];
function [nX,nY,nZ]=rotateXYZ(X,Y,Z,R)
nX=zeros(size(X)); nY=zeros(size(Y)); nZ=zeros(size(Z));
for i=1:size(X,1)
for j=1:size(X,2)
v=[X(i,j);Y(i,j);Z(i,j)];
nv=R*v; nX(i,j)=nv(1); nY(i,j)=nv(2); nZ(i,j)=nv(3);
end
end
end
% 绘制花杆函数预定义 ========================================================
function drawStraw(X,Y,Z)
[m,n]=find(Z==min(min(Z)));
m=m(1);n=n(1);
x1=X(m,n);y1=Y(m,n);z1=Z(m,n)+.03;
xx=[x1,0,(x1.*cos(pi/3)-y1.*sin(pi/3))./3].';
yy=[y1,0,(y1.*cos(pi/3)+x1.*sin(pi/3))./3].';
zz=[z1,-.7,-1.5].';
strawPnts=bezierCurve([xx,yy,zz],50);
plot3(strawPnts(:,1),strawPnts(:,2),strawPnts(:,3),'Color',[88,130,126]./255,'LineWidth',2)
end
% 贝塞尔函数 ---------------------------------------------------------------
function pnts=bezierCurve(pnts,N)
t=linspace(0,1,N);
p=size(pnts,1)-1;
coe1=factorial(p)./factorial(0:p)./factorial(p:-1:0);
coe2=((t).^((0:p)')).*((1-t).^((p:-1:0)'));
pnts=(pnts'*(coe1'.*coe2))';
end
%曲面旋转及绘制 ============================================================
hold on
surface(rr.*cos(tr),rr.*sin(tr),hr+0.35,'EdgeAlpha',0.05,...
'EdgeColor',[0 0 0],'FaceColor','interp','CData',colorMapr,'Tag','slandarer')
[nXr,nYr,nZr]=rotateXYZ(rr.*cos(tr),rr.*sin(tr),hr+0.35,R_x_1);
nYr=nYr-.4;
surface(nXr,nYr,nZr-.1,'EdgeAlpha',0.05,...
'EdgeColor',[0 0 0],'FaceColor','interp','CData',colorMapr)
drawStraw(nXr,nYr,nZr-.1)
for k=1:4
[nXr,nYr,nZr]=rotateXYZ(nXr,nYr,nZr,R_z_2);
surface(nXr,nYr,nZr-.1,'EdgeAlpha',0.05,...
'EdgeColor',[0 0 0],'FaceColor','interp','CData',colorMapr)
drawStraw(nXr,nYr,nZr-.1)
end
% -------------------------------------------------------------------------
[nXb,nYb,nZb]=rotateXYZ(xb./2.5,yb./2.5,Zb./2.5+.32,R_x_2);
nYb=nYb-1.35;
for k=1:5
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_2);
surface(nXb,nYb,nZb,'EdgeColor','none','FaceColor','interp','CData',colorMapb)
drawStraw(nXb,nYb,nZb)
end
[nXb,nYb,nZb]=rotateXYZ(xb./2.5,yb./2.5,Zb./2.5+.32,R_x_2);
nYb=nYb-1.15;
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_1);
for k=1:5
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_2);
surface(nXb,nYb,nZb,'EdgeColor','none','FaceColor','interp','CData',colorMapb)
drawStraw(nXb,nYb,nZb)
end
[nXb,nYb,nZb]=rotateXYZ(xb./2.5,yb./2.5,Zb./2.5+.32,R_x_2);
nYb=nYb-1.25;
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_3);
for k=1:5
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_2);
surface(nXb,nYb,nZb,'EdgeColor','none','FaceColor','interp','CData',colorMapb)
drawStraw(nXb,nYb,nZb)
end
[nXb,nYb,nZb]=rotateXYZ(xb./2.5,yb./2.5,Zb./2.5+.32,R_x_2);
nYb=nYb-1.25;
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_3);
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_3);
for k=1:5
[nXb,nYb,nZb]=rotateXYZ(nXb,nYb,nZb,R_z_2);
surface(nXb,nYb,nZb,'EdgeColor','none','FaceColor','interp','CData',colorMapb)
drawStraw(nXb,nYb,nZb)
end
%axes属性调整 ==============================================================
ax=gca;
ax.Position=[0,0,1,1];
grid on
ax.GridLineStyle='--';
ax.LineWidth=1.2;
ax.XColor=[1,1,1].*0.4;
ax.YColor=[1,1,1].*0.4;
ax.ZColor=[1,1,1].*0.4;
ax.DataAspectRatio=[1,1,1];
ax.DataAspectRatioMode='manual';
view(-15,35);
end
```
19 changes: 9 additions & 10 deletions docs/blog/technique sharing/tuchuang.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ hide:
比如我的图床:`https://myimgs.pages.dev/IMG/+我的图片名称`
举个例子:https://myimgs.pages.dev/IMG/%E5%BE%AE%E4%BF%A1%202.png

步骤1 :
新建一个名为MyIMGS的github仓库(名称可随意)
[![https://www.hualigs.cn/image/63f357ba8a086.jpg](https://www.hualigs.cn/image/63f357ba8a086.jpg)](https://www.hualigs.cn/image/63f357ba8a086.jpg)
步骤2
### 步骤1
新建一个名为MyIMGS的Github仓库(名称可随意)

### 步骤2
打开[cloudflare](https://dash.cloudflare.com/)注册登陆
[![https://www.hualigs.cn/image/63f35931b7561.jpg](https://www.hualigs.cn/image/63f35931b7561.jpg)](https://www.hualigs.cn/image/63f35931b7561.jpg)
打开左侧Pages,然后创建项目、连接到Git(刚刚创建的仓库),即可见到上图蓝色箭头指向的一个网址,我这个是myimgs.pages.dev

步骤3 :
打开左侧Pages,然后创建项目、连接到Git(刚刚创建的MyIMGS仓库)

### 步骤3
上传图片到Git仓库,我是在Git仓库建立了一个名为IMG的文件夹,在这个文件夹里放图片,比如我在IMG文件夹放了一张名为xigua,jpeg格式的图片,则这个照片的路径为:https://myimgs.pages.dev/IMG/xigua.jpeg

[![https://www.hualigs.cn/image/63f35b7578e99.jpg](https://www.hualigs.cn/image/63f35b7578e99.jpg)](https://myimgs.pages.dev/IMG/xigua.jpeg)
## 二、免费图床

## 二、免费图床(推荐)
- [载涂图床](https://mcecy.com/)
- [遇见图床](https://www.hualigs.cn/)

无脑上传图片,粘贴链接即可
[![https://www.hualigs.cn/image/63f35cf034f4e.jpg](https://www.hualigs.cn/image/63f35cf034f4e.jpg)](https://www.hualigs.cn/image/63f35cf034f4e.jpg)
3 changes: 1 addition & 2 deletions docs/blog/websitebeauty/mkdocsfont.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ An open-source Chinese font derived from Fontworks' Klee One. 一款开源中文
### 基于Mkdocs的网站字体美化用法

1. 在mkdocs.yml中添加以下内容
```yml

```yaml
extra_css:
- https://cdn.jsdelivr.net/npm/[email protected]/style.css
# - https://cdn.jsdelivr.net/npm/[email protected]/style.css
Expand Down
2 changes: 1 addition & 1 deletion docs/develop/Mywork/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

以下是我捣鼓设计着玩的作品,不是很专业
***
[Macapp](https://macapp.org.cn/){target="_blank" rel="noopener noreferrer"} logo设计
[MacApp](https://macapp.org.cn/){target="_blank" rel="noopener noreferrer"} logo设计
![img](https://cn.mcecy.com/image/20230401/219682aee80dbf42ac2fd6931a719d7b.jpeg)
![img](https://cn.mcecy.com/image/20230401/06fcb3be6f1688dab454cb92e39613cc.png)
***
Expand Down
Binary file removed docs/img/WechatIMG198.jpeg
Binary file not shown.
18 changes: 17 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,23 @@ comments: true




<head>
<!-- Start of Howxm client code snippet -->
<script>
function _howxm(){_howxmQueue.push(arguments)}
window._howxmQueue=window._howxmQueue||[];
_howxm('setAppID','14429fca-cac1-4551-a472-b046a96ebb75');
(function(){var scriptId='howxm_script';
if(!document.getElementById(scriptId)){
var e=document.createElement('script'),
t=document.getElementsByTagName('script')[0];
e.setAttribute('id',scriptId);
e.type='text/javascript';e.async=!0;
e.src='https://static.howxm.com/sdk.js';
t.parentNode.insertBefore(e,t)}})();
</script>
<!-- End of Howxm client code snippet -->
</head>



Expand Down
23 changes: 11 additions & 12 deletions docs/javascripts/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,18 +643,17 @@ span.onclick = function() {

// 浩客

function _howxm(){_howxmQueue.push(arguments)}
window._howxmQueue=window._howxmQueue||[];
_howxm('setAppID','14429fca-cac1-4551-a472-b046a96ebb75');
(function(){var scriptId='howxm_script';
if(!document.getElementById(scriptId)){
var e=document.createElement('script'),
t=document.getElementsByTagName('script')[0];
e.setAttribute('id',scriptId);
e.type='text/javascript';e.async=!0;
e.src='https://static.howxm.com/sdk.js';
t.parentNode.insertBefore(e,t)}})();

// function _howxm(){_howxmQueue.push(arguments)}
// window._howxmQueue=window._howxmQueue||[];
// _howxm('setAppID','14429fca-cac1-4551-a472-b046a96ebb75');
// (function(){var scriptId='howxm_script';
// if(!document.getElementById(scriptId)){
// var e=document.createElement('script'),
// t=document.getElementsByTagName('script')[0];
// e.setAttribute('id',scriptId);
// e.type='text/javascript';e.async=!0;
// e.src='https://static.howxm.com/sdk.js';
// t.parentNode.insertBefore(e,t)}})();


// crisp在线客服
Expand Down
4 changes: 3 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -691,4 +691,6 @@ div.hide {
/* 变灰代码 */
/* html {
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
-webkit-filter: grayscale(100%);} */
-webkit-filter: grayscale(100%);} */


4 changes: 2 additions & 2 deletions docs/waline.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ comments: true

<!-- ... -->
</head>
<body>

<!-- ... -->
<div id="waline"></div>
<script type="module">
Expand All @@ -44,7 +44,7 @@ comments: true
pageview: true,
});
</script>
</body>


<script src="https://giscus.app/client.js"
data-repo="Wcowin/hexo-site-comments"
Expand Down
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ theme:
icon: material/weather-sunny
name: 切换至日间模式
features:
- navigation.instant #- header.autohide #自动隐藏
- announce.dismiss #呈现可标记为由用户读取的临时公告,可以包含一个用于取消当前公告的按钮
- navigation.instant #- header.autohide #自动隐藏
- navigation.tracking #地址栏中的 URL 将自动更新为在目录中突出显示的活动锚点
- navigation.tabs #顶级部分将呈现在上面视口标题下方的菜单层中,但在移动设备上保持原样
# - navigation.tabs.sticky #启用粘性选项卡后,导航选项卡将锁定在标题下方,并在向下滚动时始终保持可见
- navigation.sections #启用部分后,顶级部分在边栏中呈现为1220px以上视口的组,但在移动设备上保持原样
- navigation.top # 返回顶部的按钮 在上滑时出现
- navigation.footer #页脚将呈现在边栏中,但在移动设备上保持原样
- search.suggest # 搜索输入一些字母时推荐补全整个单词
- search.highlight # 搜索出的文章关键词加入高亮
- navigation.expand # 打开Tab时左侧目录全部展开
Expand Down Expand Up @@ -77,6 +78,7 @@ nav:
- oh-my-zsh 更新: blog/technique sharing/ohmuzsh.md
- 解决谷歌翻译用不了的问题: blog/technique sharing/googletranslate.md
- 爱心代码: blog/technique sharing/aixin.md
- 用Matlab画玫瑰百合花: blog/technique sharing/matlabrose.md
- 科学上网: blog/technique sharing/kexue.md
- MKdocs:
- 利用mkdocs部署静态网页至GitHub pages: blog/Mkdocs/mkdocs1.md
Expand Down

0 comments on commit f6e94c0

Please sign in to comment.