1.创建一个配置中心,这里我们使用码云上面的(自己创建) 2.导入包 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</a ...
分类:
编程语言 时间:
2019-11-30 09:21:40
阅读次数:
105
对utf-8完全没概念的可以看看我上一篇随笔: 简单说说utf-8编码格式 另外,还要知道string.sub 和 string.byte 的用法。 先上完整代码: 基本思路: 之所以要自己写一个截取函数,是因为lua的库函数string.sub实际是字节的截取函数。 uft-8编码格式中,大部分中 ...
分类:
其他好文 时间:
2019-11-30 00:03:55
阅读次数:
81
这款是实现的类似echarts的矩形树图,由于美观度不及echarts的矩形树图,被替换了,好歹是自己一个一个敲的代码,不忍心就这样丢弃了,又加工了一下,做成了一个代码可视化统计工具 源代码: https://gitee.com/pozhu15/djangotest ...
分类:
其他好文 时间:
2019-11-28 22:58:39
阅读次数:
132
//使用的canvans绘制的三角形 drawArrow(){ var canvas = document.createElement('canvas');//创建一个元素 canvas.width = 10; canvas.height = 5; var ctx = canvas.getConte ...
分类:
其他好文 时间:
2019-11-28 15:18:23
阅读次数:
110
tr命令,有2种方式 方式一 tr char1 char2,可以将char1字符替换为char2字符: cat /etc/issue | tr 'a-z' 'A-Z' 方式二 tr -d char,将输入过来的文本中含char的删除: cat /etc/issue | tr -d 'abc' tee ...
分类:
系统相关 时间:
2019-11-27 23:21:06
阅读次数:
111
pytorch 版本使用1.1.0 参照下列命令 pip3 install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp36-cp36m-win_amd64.whl ##(CUDA 10.0) https://download.pytor ...
分类:
其他好文 时间:
2019-11-27 10:37:02
阅读次数:
182
本地先安装git 1. 下载 "hugo" ,并配置好环境变量 我这里win7 64位,选择该版本下载 将解压后的hugo.exe,配置到环境变量中,如下图所示表明配置成功 2. 生成本地站点 3. 选择 "主题" 这里选择其中一款 4. 新建文章 写入markdown内容 5. 预览 至此本地编写 ...
分类:
其他好文 时间:
2019-11-26 13:15:26
阅读次数:
116
官网地址http://ueditor.baidu.com Git 地址 https://github.com/fex-team/ueditor 参考博客地址 http://blog.ncmem.com/wordpress/2019/08/12/ueditor-word%E5%9B%BE%E7%89% ...
分类:
其他好文 时间:
2019-11-25 11:31:46
阅读次数:
68
系统管理->插件管理->高级->升级站点->URL https://jenkins-zh.gitee.io/update-center-mirror/tsinghua/update-center.json 或 https://mirrors.tuna.tsinghua.edu.cn/jenkins/ ...
分类:
其他好文 时间:
2019-11-24 13:34:57
阅读次数:
391
The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a bin ...
分类:
其他好文 时间:
2019-11-23 23:41:44
阅读次数:
82