Forked from LeZuse/Javascript-base.sublime-snippet
Created
November 21, 2012 03:58
-
-
Save ryanhanwu/4122930 to your computer and use it in GitHub Desktop.
Sublime Javascript snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[base(this, '${1:method}'${2});${0}]]></content> | |
<tabTrigger>base</tabTrigger> | |
<scope>source.js</scope> | |
<description>Base method call</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[function(${3:first_argument}) { | |
${0:// body...} | |
}]]></content> | |
<tabTrigger>lambda</tabTrigger> | |
<scope>source.js</scope> | |
<description>Inline lambda</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[console.log('${1:Log message}'${2});${0}]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>source.js</scope> | |
<description>Console log</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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