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
1 parent
c1c0c1c
commit 8df124a
Showing
11 changed files
with
118 additions
and
7 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,5 @@ | ||
|
||
|
||
2012-11-14 | ||
---------- | ||
* Initial release. |
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,43 @@ | ||
Sublime Text Editor 2 - JavaScript Snippets | ||
=========================================== | ||
|
||
JavaScript snippets for your Sublime Test 2 Fu. | ||
|
||
|
||
Install | ||
------- | ||
|
||
Currently install only works on OS X. But you can manually copy the snippets to the proper location on any platform. | ||
|
||
|
||
|
||
Snippets | ||
-------- | ||
|
||
### afn | ||
|
||
### cl | ||
|
||
### cd | ||
|
||
### cdu | ||
|
||
### fn | ||
|
||
### proto | ||
|
||
### req | ||
|
||
|
||
Author | ||
------ | ||
|
||
JP Richardson | ||
|
||
|
||
License | ||
------- | ||
|
||
Copyright 2012, JP Richardson <jprichardson@gmail.com> | ||
|
||
MIT |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$(uname)" = "Darwin" ] | ||
then | ||
loc="/Users/$(whoami)/Library/Application Support/Sublime Text 2/Packages/JavaScript" | ||
cp -r snippets/* "$loc/." | ||
echo "Installed to: $loc" | ||
elif [ "$(uname)" = "Linux" ] | ||
then | ||
echo "Doesn't support install on Linux yet." | ||
fi |
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.dir(${0:msg}) | ||
]]></content> | ||
<tabTrigger>cdu</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>console.dir</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(${0:msg}) | ||
]]></content> | ||
<tabTrigger>cl</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
console.log(require('util').inspect(${0:obj}, true, 10, true)) | ||
]]></content> | ||
<tabTrigger>cdu</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>console.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,9 @@ | ||
<snippet> | ||
<content><![CDATA[function ${1:methodName} (${2:arguments}) { | ||
${0:// body...} | ||
} | ||
]]></content> | ||
<tabTrigger>fn</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>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,9 @@ | ||
<snippet> | ||
<content><![CDATA[function(${1:arguments}) { | ||
${0:// body...} | ||
} | ||
]]></content> | ||
<tabTrigger>afn</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>Anoynmous 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,9 @@ | ||
<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</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[ | ||
require(${0:package}) | ||
]]></content> | ||
<tabTrigger>req</tabTrigger> | ||
<scope>source.js</scope> | ||
<description>require</description> | ||
</snippet> |