Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Justin Morris
committed
Sep 10, 2012
0 parents
commit dadb134
Showing
23 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>$1</th> | ||
<th>$2</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>$3</td> | ||
<td>$4</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
]]></content> | ||
<tabTrigger>table</tabTrigger> | ||
<description>fw - table</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
(function() { | ||
${1:// code} | ||
})(); | ||
]]></content> | ||
<tabTrigger>anon</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - anonymous function</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
var foo = { | ||
'${1:key}' : '${2:value}', | ||
'${3:key}' : '${4:value}' | ||
}; | ||
]]></content> | ||
<tabTrigger>object</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - object</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
console.log(${1:'${2:data}:', ${2:data}}); | ||
]]></content> | ||
<tabTrigger>cl</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
else { | ||
${1:// code} | ||
} | ||
]]></content> | ||
<tabTrigger>else</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - else</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
app.${1:get}('/${2:route}', ${3:middleware}, function(request, response) { | ||
${4:// code} | ||
}); | ||
]]></content> | ||
<tabTrigger>app</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - app.[get|post|put|del]</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${1:foo}.forEach(function(${2:value, index}) { | ||
${3:// code} | ||
}); | ||
]]></content> | ||
<tabTrigger>foreach</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - forEach</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
var ${1:foo} = function(${2:vars}) { | ||
${3:// code} | ||
}; | ||
]]></content> | ||
<tabTrigger>function</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - function</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
if (typeof ${1:condition} !== 'undefined') { | ||
${2:// code} | ||
} | ||
]]></content> | ||
<tabTrigger>undef</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - undefined</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
if (${1:foo} ${2:===} ${3:bar}) { | ||
${4:// code} | ||
}${5: else { | ||
${6:// code} | ||
\}} | ||
]]></content> | ||
<tabTrigger>if</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - if</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${1:var ${2:foo} = }[ '${3:value}', '${4:value}' ]${5:;} | ||
]]></content> | ||
<tabTrigger>ia</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - inline array</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${1:var ${2:foo} = }{ '${3:key}' : '${4:value}' }${5:;} | ||
]]></content> | ||
<tabTrigger>io</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - inline object</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
describe('${1:description}', function() { | ||
${2:// code} | ||
}); | ||
]]></content> | ||
<tabTrigger>describe</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - describe</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
it('${1:should...}', function(done) { | ||
${2:// code} | ||
${3:done();} | ||
}); | ||
]]></content> | ||
<tabTrigger>it</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
fs.readdirSync(${2:path}).forEach(function(file) { | ||
${3:// code} | ||
}); | ||
]]></content> | ||
<tabTrigger>readdirSync</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - readdirSync</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
var ${1:module} = require('${2:${1:module}}'); | ||
]]></content> | ||
<tabTrigger>req</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - require</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
console.log(util.inspect(${1:foo}, ${2:true, null})); | ||
]]></content> | ||
<tabTrigger>inspect</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - util.inspect</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
Object.keys(${1:foo}).forEach(function(${2:key}) { | ||
var ${3:foo} = ${1}[key]; | ||
${4:// code} | ||
}); | ||
]]></content> | ||
<tabTrigger>keys</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - Object.keys().forEach</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
var foo = [ | ||
'${1:value}', | ||
'${2:value}' | ||
]; | ||
]]></content> | ||
<tabTrigger>array</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - object</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
var self = this; | ||
]]></content> | ||
<tabTrigger>self</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - var self = this</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
setInterval(function() { | ||
${2:// code} | ||
}, ${1:500}); | ||
]]></content> | ||
<tabTrigger>interval</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - setInterval</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
setTimeout(function() { | ||
${2:// code} | ||
}, ${1:500}); | ||
]]></content> | ||
<tabTrigger>timeout</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - setTimeout</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
switch(${1:variable}) { | ||
case ${2:value}: | ||
${3:// code} | ||
break; | ||
case ${4:value}: | ||
${5:// code} | ||
break; | ||
default: | ||
${6:// code} | ||
} | ||
]]></content> | ||
<tabTrigger>switch</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>fw - switch</description> | ||
</snippet> |