2012-02-02 04:33:35 +00:00
|
|
|
snippet req
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:#:object} = require('$1')
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet log
|
|
|
|
console.log ${0}
|
|
|
|
|
|
|
|
snippet unl
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:#:action} unless ${2:#:condition}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet try
|
|
|
|
try
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:TARGET}
|
|
|
|
catch ${2:#:error}
|
2012-02-02 04:33:35 +00:00
|
|
|
${3}
|
|
|
|
|
|
|
|
snippet if
|
2012-10-30 08:53:14 +00:00
|
|
|
if ${1:#:condition}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet elif
|
2012-10-30 08:53:14 +00:00
|
|
|
else if ${1:#:condition}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet ifte
|
2012-10-30 08:53:14 +00:00
|
|
|
if ${1:#:condition} then ${2:#:value} else ${3:#:other}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet ife
|
2012-10-30 08:53:14 +00:00
|
|
|
if ${1:#:condition}
|
|
|
|
${2:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
else
|
2012-10-30 08:53:14 +00:00
|
|
|
${3:#:body...}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet swi
|
2012-10-30 08:53:14 +00:00
|
|
|
switch ${1:#:object}
|
|
|
|
when ${2:#:value}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet ^j
|
|
|
|
\`${1:javascript}\`
|
|
|
|
|
|
|
|
snippet forr
|
2012-10-30 08:53:14 +00:00
|
|
|
for ${1:#:name} in [${2:#:start}..${3:#:finish}]${4: by ${5:#:step\}}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet forrex
|
2012-10-30 08:53:14 +00:00
|
|
|
for ${1:#:name} in [${2:#:start}...${3:#:finish}]${4: by ${5:#:step\}}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet foro
|
2012-10-30 08:53:14 +00:00
|
|
|
for ${1:#:key}, ${2:#:value} of ${3:#:object}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet fora
|
2012-10-30 08:53:14 +00:00
|
|
|
for ${1:#:name} in ${2:#:array}
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet fun
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:#:name} = (${2:#:args}) ->
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet bfun
|
2012-10-30 08:53:14 +00:00
|
|
|
(${1:#:args}) =>
|
|
|
|
${0:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet cla
|
|
|
|
abbr cla
|
2012-10-21 12:13:26 +00:00
|
|
|
options head
|
2012-10-30 08:53:14 +00:00
|
|
|
class ${1:#:ClassName}${2: extends ${3:#:Ancestor\}}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-10-30 08:53:14 +00:00
|
|
|
constructor: (${4:#:args}) ->
|
|
|
|
${5:TARGET}
|
2012-02-02 04:33:35 +00:00
|
|
|
|