Skip to content

Instantly share code, notes, and snippets.

@codekidX
Created August 8, 2017 15:34
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 codekidX/61e66c3f2b3eb6a651c51d6a772d7dfd to your computer and use it in GitHub Desktop.
Save codekidX/61e66c3f2b3eb6a651c51d6a772d7dfd to your computer and use it in GitHub Desktop.
My snippet (Atom) for adding copyrights
# 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'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# Both snippets will be loaded
'.source.js':
'normal copyright':
'prefix': 'copy'
'body': '/*\n*Copyright (c) 2017 Ashish (codekidX) All Rights Reserved.\n*/'
'mit copyright':
'prefix': 'copy.mit'
'body': '/*\nCopyright (c) 2017 Ashish (codekidX) All Rights Reserved.\n
Permission is hereby granted, free of charge,to any person obtaining\n
a copy of this software and associated documentation files (the "Software"),\n
to deal in the Software without restriction, including without limitation\n
the rights to use, copy, modify, merge, publish, distribute, sublicense,\n
and/or sell copies of the Software, and to permit persons to whom the Software\n
is furnished to do so, subject to the following conditions:\n*/'
'apache copyright':
'prefix': 'copy.apache'
'body': '/*\nCopyright 2017 Ashish (codekidX)\n\n
Licensed under the Apache License, Version 2.0 (the "License");\n
you may not use this file except in compliance with the License.\n
You may obtain a copy of the License at\n\n
http://www.apache.org/licenses/LICENSE-2.0\n\n
Unless required by applicable law or agreed to in writing, software\n
distributed under the License is distributed on an "AS IS" BASIS,\n
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
See the License for the specific language governing permissions and\n
limitations under the License.\n*/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment