leesea

  • Home

  • reading

  • Tags

  • Categories

  • Archives

  • About

  • Search

画图工具介绍

Posted on 2018-06-19 | Edited on 2018-09-28 | In tools

在我们写文档的时候常常需要插入一些图片来辅助说明,文档可以用 git 来管理,换个人很容易修改,但是图片如果没有原图很难修改。这里我们介绍几款代码画图工具,可以很方便的用 git 管理。

Read more »

oslo 源码分析之 context

Posted on 2018-06-03 | Edited on 2018-09-28

在介绍源码之前,我们先谈谈什么是 context. 一开始不太理解什么是 context,其实它是一个统称,在不同的地方有不同的含义,所以不是很直白。context 翻译成中文是“上下文”的意思,说白了和文章的上下文是一个意思,通俗一点讲就是环境。例如用户信息,token 之类的。如果还是不明白,看看下面的例子。

Read more »

go string 连接性能测试

Posted on 2018-04-28 | Edited on 2018-09-28 | In coding

我们常使用字符串拼接,当比较小时,使用哪种方式都差不多,但是当拼接数比较大时,不同的方法效率会相差很大。

Read more »

nose 使用

Posted on 2018-04-28 | Edited on 2019-01-23 | In coding

使用nose进行单元测试

nose是一个很nice的python测试框架,使用起来非常方便。有些openstack项目也使用nose进行单元测试。

Read more »

python 迭代器和生成器

Posted on 2018-04-23 | Edited on 2018-09-28 | In coding

在 python 中我们常用 for in 来遍历 list, set, dict, str 等。
for in 的本质就干了两件事:

  1. 调用 __iter__() 获取迭代器;
  2. 调用 next() 直到 StopIteration 异常; (python3 中是 __next__())
Read more »

shell 常用技巧

Posted on 2018-04-22 | Edited on 2019-07-22 | In shell

记录些 shell 的使用技巧。

Read more »

go http 使用

Posted on 2018-04-20 | Edited on 2019-07-22 | In coding

go 最强大的地方在于 goroutine 的实现,goroutine最适合的应用场景就是异步i/o。

Read more »

go 结构体

Posted on 2018-04-18 | Edited on 2018-09-28 | In coding

go 语言中结构体有点类似 OOP 语言中的类,但是又有着很大区别。go 使用大小写来控制属性的访问权限,如果首字母大写在其它包中可以被访问,否则只能在本包中访问

Read more »

Docker 常用命令

Posted on 2017-05-08 | Edited on 2019-09-18 | In PaaS

记录 docker 常用命令。

Read more »

ip 命令使用

Posted on 2017-04-30 | Edited on 2018-09-28 | In os

ip命令用来显示或操纵Linux主机的路由、网络设备、策略路由和隧道,是Linux下较新的功能强大的网络配置工具。

Read more »
1…6789

leesea

85 posts
16 categories
27 tags
RSS
© 2020 leesea
Powered by Hexo v3.7.1
|
Theme – NexT.Mist v6.4.1