常用压缩/解压缩命令

Written by  on November 16, 2016

不多说,都是泪。 压缩 Shell 1 tar –cvf jpg.tar *.jpg

[Read more...]

使用GNU parallel命令并行预处理数据

Written by  on November 10, 2016

自打入职以来,Leader每次来我工位溜达问的最多的一句话就是“玩什么呢在?”,第二多的一句话就是“你为什么不用命令行啊?”。。。囧。。。

[Read more...]

Codeforces #733 D

Written by  on November 2, 2016

733D D. Kostya the Sculptor time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Kostya is a genial sculptor, he has an idea: to carve a marble sculpture in the shape of a sphere. Kostya has a friend Zahar who works at a career. Zahar knows about Kostya’s idea and wants to present him a rectangular parallelepiped of marble from which he can carve the sphere.

[Read more...]

Codeforces #719 C

Written by  on October 26, 2016

719C C. Efim and Strange Grade time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output

[Read more...]

博客关闭评论

Written by  on October 23, 2016

由于Disqus时不时加载抽风,多说又实在是丑并且听说还停止维护了,用博客自带的评论系统的话又要顾着anti-spam而且也丑,自己暂时也懒得去折腾,所以最终还是决定关掉了评论,页面清爽了一些加载速度快了一些浏览体验似乎更好了一点。。。

[Read more...]

Codeforces #721 C

Written by  on October 11, 2016

721C C. Journey time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Recently Irina arrived to one of the most famous cities of Berland — the Berlatov city. There are n showplaces in the city, numbered from1 to n, and some of them are connected by one-directional roads. The roads in Berlatov are designed in a way such that there are nocyclic routes between showplaces.

[Read more...]

Python中的多进程队列

Written by  on September 21, 2016

在Python中进程间共享数据比较常用的方法就是多进程队列multiprocessesing.queues.Queue,官方文档在这里是这么说的: The Queue class is a near clone of Queue.Queue; Queues are thread and process safe.

[Read more...]

用Python备份WordPress数据至Google Drive

Written by  on July 28, 2016

前段时间因为Google Photos照片传太多把Google Drive空间用完了,就买了三刀一个月的Google会员,然后就发现100G空间似乎一时半会儿还用不完,正好之前一直想着给博客服务器来个自动备份脚本,所以就先把坑填了。

[Read more...]

git通过config指定ssh密钥

Written by  on July 9, 2016

之前博客里面有记载过通过脚本的方式指定git的ssh密钥,略为复杂,后来从同事那里知道了一种更简单直接的方法。

[Read more...]

张家界

Written by  on June 21, 2016

算是按部就班地来了一次毕业旅行吧。 起初是决定去凤凰的,结果当时在长沙和小伙伴们一起向过来人打听,都说张家界比凤凰好玩,就临时改途买了火车票去张家界。

[Read more...]