个人卡片实现渐变色
添加代码打开Blog根目录/source/css/custom.css,路径中的css文件夹或custom.css文件没有的话就新建,写入如下代码:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061/* 侧边栏个人信息卡片动态渐变色 */#aside-content > .card-widget.card-info { background: linear-gradient( -45deg, #e8d8b9, #eccec5, #a3e9eb, #bdbdf0, #eec1ea ); box-shadow: 0 0 5px rgb(66, 68, 68); position: relative; background-size: 400% 400%; -webkit-animation: Gradient 10s ease infinite; - ...
添加看板娘
前言我安装的是博客自带的看板娘,比较推荐这个,消耗资源比较少,虽然不会说话也不能换装,但是会乖乖地盯着你的鼠标~
安装打开Blog根目录cmd并输入以下命令
1npm install --save hexo-helper-live2d
配置打开Blog根目录下的站点配置文件_config.yml搜索live2d,没有的话就将下列内容复制到最底部
123456789101112131415161718192021222324# Live2D## https://github.com/EYHN/hexo-helper-live2dlive2d: enable: true #开关插件版看板娘 scriptFrom: local # 默认 pluginRootPath: live2dw/ # 插件在站点上的根目录(相对路径) pluginJsPath: lib/ # 脚本文件相对与插件根目录路径 pluginModelPath: assets/ # 模型文件相对与插件根目录路径 # scriptFrom: jsdelivr # jsdelivr CDN # scriptFrom: ...
小岛面积
题目:用一个二维方阵(最小为3X3,最大为9X9)表示一片海域。方阵中的元素只由0和1组成。1表示海岸线。计算由海岸线围起来的小岛面积(即:由1围起来的区域中0的个数) **上述方阵表示的海域满足下面两个要求: 1、小岛只有一个 2、用1表示的海岸线肯定可以封闭成一个小岛,但有可能是凸的,也有可能是凹的,所以在判断时:对于方阵中的任意一个元素0,如果其位于同一行上的两个1之间,并且位于同一列上的两个1之间,则该元素肯定在1围起来的区域中。不符合该规定的其它情况不考虑。** 样例: 输入: 6 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 输出: 9
思路:边界上的0一定不被1包围,将其值改为2,与2有接触的0被感染成2,不断感染,最后幸存的0是被1包围的
12345678910111213141516171819202122232425262728293031323334353637383940414243444546#include <iostream>using name ...
Yura's Smile
题目After holding one team contest, boy Yura got very tired and wanted to change his life and move to Japan. In honor of such a change, Yura changed his name to something nice.
Fascinated by this idea he already thought up a name s consisting only of characters ““ and “^”. But there’s a problem — Yura likes smiley faces “^^” and “^^”. Therefore any character of the name must be a part of at least one such smiley. Note that only the consecutive characters of the name can be a smiley face.
More form ...
Twikoo评论通用配置
添加Twikoo请查看文章添加Twikoo实现博客在线评论
安装完成后可以对Twikoo进行以下配置:
评论区美化参考自:Leonus的博客与陈鑫磊的博客
效果预览
新建Blog\source\css\custom.css,缺少的文件夹或文件直接创建即可,在末尾添加下列代码
这段代码的主要作用就是增加边框的立体感和圆润度
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612 ...