Created
May 20, 2019 18:07
-
-
Save mocon/5b57eae893c96291718b5d8bd1d0b52e to your computer and use it in GitHub Desktop.
Atom snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JavaScript | |
'.source.js': | |
'console.log': | |
'prefix': 'cl' | |
'body': 'console.log(\'$1 ๐\', $1)$2' | |
'console.log JSON': | |
'prefix': 'clj' | |
'body': 'console.log(\'$1 ๐\', JSON.stringify($1, null, 2))$2' | |
# CSS | |
'.source.css': | |
'CSS space variables': | |
'prefix': 'vrs' | |
'body': 'var(--space-$1)$2' | |
'CSS color variables': | |
'prefix': 'vrc' | |
'body': 'var(--color-$1)$2' | |
# Scss | |
'.source.scss': | |
'Mobile only media query': | |
'prefix': 'mo' | |
'body': '@include mobile-only {\n $1\n}\n$2' | |
'Desktop only media query': | |
'prefix': 'ds' | |
'body': '@include desktop-only {\n $1\n}\n$2' | |
# Markdown | |
'.source.gfm': | |
"Do's and Dont's": | |
'prefix': 'dod' | |
'body': "<div class='DosAndDonts'>\n<div class='Do'>\n$1\n</div>\n<div class='Dont'>\n$2\n</div>\n</div>\n\n$3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment