Skip to content

Instantly share code, notes, and snippets.

@armand1m
Last active November 2, 2015 23:36
Show Gist options
  • Save armand1m/be267a79d6880067accc to your computer and use it in GitHub Desktop.
Save armand1m/be267a79d6880067accc to your computer and use it in GitHub Desktop.
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.text.html':
'OpenGraph MetaTag':
'prefix': 'ogmp'
'body': '<meta property="og:$1" content="$2">'
'OpenGraph Title':
'prefix': 'ogtit'
'body': '<meta property="og:title" content="$1">'
'OpenGraph Description':
'prefix': 'ogdesc'
'body': '<meta property="og:description" content="$1">'
'OpenGraph Image':
'prefix': 'ogimg'
'body': '<meta property="og:image" content="$1">'
'.source.php':
'Class PHP DOC':
'prefix': 'cphpdocq'
'body': """
/**
* ${1:Description}
*
* @author ${2:Armando Magalhães}
*/
"""
'Method PHP DOC':
'prefix': 'mphpdocq'
'body': """
/**
* ${1:Description}
*
* @param
* @return void
* @author ${2:Armando Magalhães}
*/
"""
'Var PHP DOC Quality':
'prefix': 'vphpdocq'
'body': """
/**
* @var ${1:$example}
*/
"""
'.source.js':
'JSHint Node usual comment':
'prefix': 'njshintcomment'
'body': """
// jshint node: true, esnext: true, laxcomma: true, curly: true
"""
'jshint usual comment':
'prefix': 'jshintcomment'
'body': """
// jshint node: esnext: true, laxcomma: true, curly: true
"""
'Module js doc':
'prefix': 'modjsdoc'
'body': """
/**
* ${1:Description}
*
* @uses
* @author ${2:Armando Magalhães}
*/
"""
'Method js doc':
'prefix': 'metjsdoc'
'body': """
/**
* ${1:Description}
*
* @param
* @return void
* @author ${2:Armando Magalhães}
*/
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment