winwin-hexo-editor 完全部署指南

winwin-hexo-editor 完全部署指南

在这之前你需要准备好

  • 一台安装了宝塔面板的linux centOS服务器
  • hexo博客已经成功部署到了服务器上
  • 能够访问ssh

下载Hexo Editor到服务器端

定位到Hexo博客的根目录下,执行以下命令

国内下载

1
git clone https://gitee.com/winwin_2011/winwin-hexo-editor

国外下载

1
git clone https://github.com/YuJianghao/winwin-hexo-editor

刷新一下宝塔面板,我们就会看到下载好的winwin-hexo-editor文件夹

Read more
Blogging Online with Code-Server

Blogging Online with Code-Server

Before


I used to utilize hexo extension hexo-admin to write my blog and deploy webpage online. However, it’s not very stable with bugs sometimes.

Now


A talented person recommended me to use code-server which is a online version of VScode. I was struggling with comfiguring it on my server even untill now. On the other hand, it’s more stable and convenient for me to use than before, so I am satisfied. Hope I can deploy Nodejs on that soon.

Read more
Chrome Extension recommendation

Chrome Extension recommendation

First of all, let’s see what extensions I am using now.

my daily extensions

Why do I write the blog?


I was using Microsoft Edge since I am a one hundred percent fan of Microsoft, also because I believe that the original one is the best one just like original desktop wallpaper, original antivirus software and so on. However, I have changed to Google Chrome Browser a few month ago. I realized that Chrome is truly worthy of the name. A multitude of wide-ranging extension, highly personalized costume and super fast response speed are the reason that I love this browser so much.

When I explore the Google Extension Shop, I found many interesting and perfect extensions. After my trying and experiencing, I got a list of the best extension recommended personally. Hope the following extensions would be helpful for you. Feel free to ask any kind of questions in the comment zone at the bottom of the blog!

Google Helper


Function

The name has already indicated the function of the extension which is helping you to surf on google… You can surf on the Internet around the world with it. I recommend it because its stability and stability. Just a Chrome extension can be the global proxy of your computer, which means you are allowed to watch YouTube without using Chrome.

google helper dashboard

It also has a version for mobile phone including IOS and Android.

How to use it

  1. Download Google Chrome Browser and install it.
  2. Download Google Helper and unzip the package.
  3. Open Chrome and type chrome://extensions/ in the address bar. You will find the same page like the following one .
  1. Press Load unpacked and a pop-up will appear. Select your unzip extension folder and confirm.

Read more
Tech Flow

Tech Flow

We do more than change the world.

We create it.

It’s an amazing, fantastic, incredible, unprecedented event about technology products I had ever seen. Now I believe that Microsoft is a company that will change the world more than once.

Read more
Markdown 入门指南

Markdown 入门指南

什么是Markdown?

Markdown 是一种轻量级标记语言,通过一些简单的符号来表示多级标题、引用等不同属性的文本。对于一般的写作者,我们可以把Markdown理解为word的简约替代方案。

Markdown的优点

  • 专注于文本本身,不需要考虑文本的样式
  • 逻辑条理清晰,自动生成文本大纲,本文左侧的大纲就是自动生成的,点击题目可以自动跳转
  • 通用性
  • 个性化外观和样式

基本语法介绍

多级标题


Markdown中,‘#’代表标题,只需要在标题前加‘#’就可以了。几个‘#’就代表是第几级标题

*注意‘#’和文字之间要有一个空格*

Example

1
2
3
4
# 一级标题
## 二级标题
### 三级标题
……

效果

一级标题

二级标题

三级标题

引用


有时候会需要引用一些内容,这个时候我们可以使用>表示引用

Example

1
> 此处为引用

效果

此处为引用

代码块


有时候会有大量的代码,这个时候使用代码块表示非常方便

Example

1
2
3
4
5
6
7
8
9
`单行代码`
​```C++(此处为代码的语言,可以辅助高亮)
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!"<<endl;
return 0;
}

效果

‘单行代码’

1
2
3
4
5
6
7
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!"<<endl;
return 0;
}

加粗 & 斜体


Example

1
2
3
*斜体*
**加粗**
***加粗斜体***

效果

斜体
加粗
*加粗斜体*

列项


Example

1
2
3
4
5
6
7
1. 一
2. 二
3. 三

- 一
- 二
- 三

效果

分割线


Example

1
2
3
4
5


---


效果


软件支持

‘Markdown’相当是一种语言,当然有很多不同的软件都支持该格式。我个人推荐Typora,非常美观的一款‘Markdown’软件

*欢迎进入Markdown的奇妙世界……*

*持续更新中……*

VEX programming tips

VEX programming tips

使用万能的电机控制自定义函数

由于电机的端口是一个motor类型的变量,所以我们可以将电机当作变量传参。

模板

1
2
3
4
5
void m(motor motorname,int speed=100,int tor=100) //定义一个名为m的函数,三个参数分别是电机端口、速度(默认100)、力矩(默认100)。
{
motorname.setMaxTorque(tor,percentUnits::pct);
motorname.spin(directionType::fwd,speed,percentUnits::pct);
}

实例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 底盘四个电机全功率向前1000ms
using namespace vex;
void test()
{
//四个电机同时以速度100,力矩100向前
m(MotorLF,100,100);
m(MotorLB,100,100);
m(MotorRF,100,100);
m(MotorRB,100,100);
//延时1000ms
task::sleep(1000);
//四个电机同时停
m(MotorLF,0);//由于在这里(一般情况下)力矩默认都为100,所以可以直接不传入力矩这个参数,跳过即可)
m(MotorLB,0);
m(MotorRF,0);
m(MotorRB,0);
}