作者:木尘 日期:2014-11-25
插件实现插入带时间功能的说明:
1. 创建插件:
Tools → New Plugin:
import datetime
import sublime_plugin
class AddCurrentTimeCommand(sublime_plugin.TextCommand):
def run(self, edit):...
分类:
其他好文 时间:
2014-11-25 16:27:27
阅读次数:
428
The Sequence objectSome examples will also require a working internet connection in order to run.>>> from Bio.Seq import Seq>>> from Bio.Alphabet impo...
分类:
编程语言 时间:
2014-11-24 22:07:43
阅读次数:
297
ceph的配置文件/etc/ceph.conf中可配置参数很多,可以通过以下命令查看: root@osd2:/var/run/ceph# ceph --admin-daemon ceph-mon.osd2.asok config show|wc -l
759 一直想对一些参数进行修改以达到优化性能的目...
分类:
其他好文 时间:
2014-11-24 19:20:56
阅读次数:
441
In Ubuntu 14.04 with Samba server installed, every time you will get this error message when execute sudo command. run sudo?pam-auth-update and unselect "SMB password synchronization", this error...
分类:
其他好文 时间:
2014-11-24 15:32:00
阅读次数:
202
记忆化搜索,跟以前的做过的 滑雪 一样的。
DP+DFS。用dp[][]保存搜索记录,然后满足条件累加即可。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 0x7ffffff...
分类:
其他好文 时间:
2014-11-24 13:37:30
阅读次数:
226
1.一些Web虚拟用户脚本录制后立刻回放没有任何问题,但是当设置迭代次数大于1时,如果进行回放则只能成功迭代一次.为什么从第二次迭代开始发生错误?这种现象多是由于在"Run-time Setting"的"Browse Emulation"的设置中,勾选了"Simulate a new user on...
分类:
其他好文 时间:
2014-11-24 13:26:14
阅读次数:
172
我们都知道Handler中的post方法可以更新组件的内容,多用在子线程异步更新ui界面。
handler.post(new Runnable(){
@Override
public void run() {
//do something
mTextView.setText("msg");
}});
post 是立即插入消息列队,当消息列队处理到该消息时,Ru...
分类:
移动开发 时间:
2014-11-24 06:31:35
阅读次数:
309
基本映射 映射使用在根据不同URLs请求来产生相对应的返回内容.Bottle使用route()?修饰器来实现映射. 1
2
3
4
5 from?bottle?import?route,?run@route(‘/hello‘)def?hello():
????return?"Hello?World...
分类:
编程语言 时间:
2014-11-23 19:04:58
阅读次数:
211
#ifdef CONFIG_USE_IRQ
/* IRQ stack memory (calculated at run-time) */
.globl IRQ_STACK_START
IRQ_STACK_START:
.word 0x0badc0de
/* IRQ stack memory (calculated at run-time) */
.globl FIQ...
分类:
其他好文 时间:
2014-11-23 17:38:37
阅读次数:
214