Skip to content

Instantly share code, notes, and snippets.

@fortable1999
Created July 27, 2013 06:20
Show Gist options
  • Save fortable1999/6093968 to your computer and use it in GitHub Desktop.
Save fortable1999/6093968 to your computer and use it in GitHub Desktop.
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}
@fortable1999
Copy link
Author

The original version of coffee.snippet is developed by esundahl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment