Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PabloVallejo/9982316 to your computer and use it in GitHub Desktop.
Save PabloVallejo/9982316 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[base(this, '${1:method}'${2});${0}]]></content>
<tabTrigger>base</tabTrigger>
<scope>source.js</scope>
<description>Base method call</description>
</snippet>
<snippet>
<content><![CDATA[function(${3:first_argument}) {
${0:// body...}
}]]></content>
<tabTrigger>lambda</tabTrigger>
<scope>source.js</scope>
<description>Inline lambda</description>
</snippet>
<snippet>
<content><![CDATA[console.log('${1:Log message}'${2});${0}]]></content>
<tabTrigger>log</tabTrigger>
<scope>source.js</scope>
<description>Console log</description>
</snippet>
<snippet>
<content><![CDATA[it('should ${1:do something}', function (done) {
${0:// test...}
// done();
});]]></content>
<tabTrigger>it</tabTrigger>
<scope>source.js</scope>
<description>Mocha it</description>
</snippet>
<snippet>
<content><![CDATA[${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
${0:// body...}
};
]]></content>
<tabTrigger>proto</tabTrigger>
<scope>source.js</scope>
<description>Prototype method</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment