Skip to content

Instantly share code, notes, and snippets.

@Alex0007
Last active June 12, 2016 20:56
Show Gist options
  • Save Alex0007/872f0c0edec26251b66f to your computer and use it in GitHub Desktop.
Save Alex0007/872f0c0edec26251b66f to your computer and use it in GitHub Desktop.
snippets.cson
'.source.js':
'Console log':
'prefix': 'log'
'body': 'console.log(\'$1\', $2$1)$3'
'Console error':
'prefix': 'err'
'body': 'console.error(\'$1\', $2$1)$3'
'Require':
'prefix': 'req'
'body': 'let $1 = require(\'$2$1\')\n$3'
'Anon Function':
'prefix': 'f'
'body': 'function ($1) {\n\t$2\n}$3'
'Arrow Function':
'prefix': 'ef'
'body': '($1) => $3{$2}'
'Import':
'prefix': 'i'
'body': 'import $1 from \'$2$1\'$3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment