编程笔记

lifelong learning & practice makes perfect

博客文件均保存在 hexo/_posts/文件夹下

首先在 hexo > source目录下建一个文件夹叫Image,用来保存博客中的图片。

然后打开Typora的 文件 > 偏好设置,进行如下设置。

阅读全文 »

Gitalk

基于github的评论组件

设置github OAuth

Gitalk can only use GitHub accounts for comments.
Click here to sign up for a new OAuth Application
Other content can be filled in at will, but be sure to fill in the correct callback URL (usually the domain name corresponding to the comment page). Then you will get a Client ID and a Client secret.

创建github仓库存储评论数据

Create a repository you want to store Gitalk comments in your GitHub.

阅读全文 »

安装

  • github SSH keys密钥配置

    1
    2
    3
    4
    5
    6
    7
    8
    查看已有公钥
    ls -al ~/.ssh
    创建新SSH密钥
    ssh-keygen
    到github设置ssh公钥

    验证是否配置成功
    ssh -T git@github.com
    阅读全文 »

​ CImageList创建:读取图像,创建CImageList对象,将图像添加到对象中。

阅读全文 »

anaconda

环境切换

conda active environment_name

conda deactivate environment_name

目标

为了更好保存和记录博客,使用github+Tencent cos+Tencent CDN 存储blog,利用github action自动部署

阅读全文 »