Created
July 27, 2013 06:20
-
-
Save fortable1999/6093968 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 bfun | |
${1:(${2:args}) }=> | |
${3:# body...} | |
snippet cla | |
class ${1:ClassName}${2: extends ${3:Ancestor}} | |
${4:constructor: (${5:args}) -> | |
${6:# body...}} | |
$7 | |
snippet elif | |
else if ${1:condition} | |
${2:# body...} | |
snippet fora | |
for ${1:name} in ${2:array} | |
${3:# body...} | |
snippet foro | |
for ${1:key}, ${2:value} of ${3:Object} | |
${0:# body...} | |
snippet forr | |
for ${1:name} in [${2:start}..${3:finish}]${4: by ${5:step}} | |
${6:# body...} | |
snippet forrex | |
for ${1:name} in [${2:start}...${3:finish}]${4: by ${5:step}} | |
${6:# body...} | |
snippet fun | |
${1:name} = (${2:args}) -> | |
${3:# body...} | |
snippet if | |
if ${1:condition} | |
${2:# body...} | |
snippet ife | |
if ${1:condition} | |
${2:# body...} | |
else | |
${3:# body...} | |
snippet ifte | |
if ${1:condition} then ${2:value} else ${3:other} | |
snippet log | |
console.log $1 | |
snippet swi | |
switch ${1:object} | |
when ${2:value} | |
${0:# body...} | |
snippet try | |
try | |
$1 | |
catch ${2:error} | |
$3 | |
snippet unl | |
${1:action} unless ${2:condition} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The original version of coffee.snippet is developed by esundahl.