{% img left /images/myImage.png Alt text %}
{% img ${1:left} ${2:path} ${3:title} %}
this is a test |
<snippet> | |
<content><![CDATA[ | |
Hello, ${1:this} is a ${2:snippet}. | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>hello</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.md</scope> | |
<scope>song</scope> | |
</snippet> |
import os | |
import pymongo | |
MONGO_URL = os.environ.get('MONGOHQ_URL') | |
if MONGO_URL: | |
# Get a connection | |
conn = pymongo.Connection(MONGO_URL) | |
# Get the database |
{% img left /images/myImage.png Alt text %}
{% img ${1:left} ${2:path} ${3:title} %}
<snippet> | |
<content><![CDATA[ | |
Hello, song ${1:this} is a ${2:snippet}. | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>hello</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.python</scope> | |
</snippet> |
autocmd! bufwritepost .vimrc source ~/.vimrc | |
set showtabline=2 | |
set guitablabel=%t | |
set ignorecase smartcase | |
set smarttab | |
set wrap | |
set whichwrap+=l,h | |
set number | |
set history=50 | |
set autoread |
var Class = function () { | |
var klass = function () { | |
this.initialize.apply(this,arguments) //this中没有init,找原型 | |
}; | |
klass.fn = klass.prototype;//todo 污染 | |
return klass; | |
}; | |
//增加对象构造函数,call,apply 函数。 匿名函数,内存模型。 | |
var Class = function() { | |
var klass = function() { | |
if(typeof klass.constructor == 'function'){ | |
// klass.constructor (arguments[0]) | |
console.log(arguments[0]); | |
console.log(arguments[1]); | |
// console.log(arguments[2]); |