Skip to content

Commit

Permalink
Add timer snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Aug 14, 2013
1 parent d6f7a76 commit 069d369
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,24 @@ ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) {
}
```
## Timer
### [si] setInterval
```javascript
setInterval(function() {
${2:// body...}
}, ${1:delay});
```
### [st] setTimeout
```javascript
setTimeout(function() {
${2:// body...}
}, ${1:delay});
```
## NodeJS
### [ase] assert.equal
Expand Down Expand Up @@ -247,6 +265,8 @@ require('${1:module}');
## History
* [v0.1.2](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.2) August 14, 2013
* Added timer function snippets
* [v0.1.1](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.1) August 14, 2013
* Added NodeJS assert snippets
* [v0.1.0](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.0) August 14, 2013
Expand Down
10 changes: 10 additions & 0 deletions timer-setInterval.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
setInterval(function() {
${2:// body...}
}, ${1:delay});
]]></content>
<tabTrigger>si</tabTrigger>
<scope>source.js</scope>
<description>setInterval</description>
</snippet>
10 changes: 10 additions & 0 deletions timer-setTimeout.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
setTimeout(function() {
${2:// body...}
}, ${1:delay});
]]></content>
<tabTrigger>st</tabTrigger>
<scope>source.js</scope>
<description>setTimeout</description>
</snippet>

0 comments on commit 069d369

Please sign in to comment.