Skip to content

Instantly share code, notes, and snippets.

@jacobgarcia
Last active September 17, 2018 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobgarcia/b1d380a2ed503b81156fff7549e1be3e to your computer and use it in GitHub Desktop.
Save jacobgarcia/b1d380a2ed503b81156fff7549e1be3e to your computer and use it in GitHub Desktop.
Snippets for Atom
'.source.js':
'Models Imports':
'prefix': 'modelimport'
'body': 'const $1 = require(path.resolve("models/$1"))'
'Return Error':
'prefix': 'return-error'
'body': 'if (error) { \n console.log($1, error) \n return res.status(500).json({ error: { message: $1 } })}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment