:
precede every command.
cmd | function |
---|---|
cm 0(1~8) | toggle left(swith between left sub windows) |
/c (1~6) | swith between jumpbar |
cm /a 0 | toggle utility panel |
cm /a (1~6) | switch between inspector |
cm /c /a (1~4) | switch between libraries |
/a left | open in assistant editor |
> # #, ##, ######, -, >, —, *,
html tags
,![]()
,当你要输入关键字的时候,使用backslash-escape
Markdown provides backslash escapes for the following characters:
Code
ssh key
$ cd ~/.ssh
$ mkdir key_backup
$ cp id_rsa* key_backup
$ rm id_rsa*
生成新的密钥:
$ ssh-keygen -t rsa -C “您的邮箱地址”
下面这段lua代码转载自云风的wiki,是一种使用lua进行OOP的方法尝试
local _class={}
function class(super)
local class_type={}
class_type.ctor=false
class_type.super=super
class_type.new=function(...)
local obj={}
do
local create
create = function(c,...)
if c.super then
create(c.super,...)
end
if c.ctor then
c.ctor(obj,...)
end
end
create(class_type,...)
end
setmetatable(obj,{ __index=_class[class_type] })
return obj
end
local vtbl={}
_class[class_type]=vtbl
setmetatable(class_type,{__newindex=
function(t,k,v)
vtbl[k]=v
end
})
if super then
setmetatable(vtbl,{__index=
function(t,k)
local ret=_class[super][k]
vtbl[k]=ret
return ret
end
})
end
return class_type
end