Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Your snippets
  2. #
  3. # Atom snippets allow you to enter a simple prefix in the editor and hit tab to
  4. # expand the prefix into a larger code block with templated values.
  5. #
  6. # You can create a new snippet in this file by typing "snip" and then hitting
  7. # tab.
  8. #
  9. # An example CoffeeScript snippet to expand log to console.log:
  10. #
  11. # '.source.coffee':
  12. #   'Console log':
  13. #     'prefix': 'log'
  14. #     'body': 'console.log $1'
  15. #
  16. # Each scope (e.g. '.source.coffee' above) can only be declared once.
  17. #
  18. # This file uses CoffeeScript Object Notation (CSON).
  19. # If you are unfamiliar with CSON, you can read more about it in the
  20. # Atom Flight Manual:
  21. # http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
  22.  
  23. '.source.python':
  24.     'ipdb':
  25.         'prefix': 'teste'
  26.         'body': 'teste'
  27.  
  28. '.source.c':
  29.     'printf':
  30.         'prefix': 'pr'
  31.         'body': 'printf("%$1",$2);$3'
  32.     'scanf':
  33.         'prefix': 'sc'
  34.         'body': 'scanf("%$1",&$2);$3'
  35.     'for loop':
  36.         'prefix': 'for'
  37.         'body': '''for( int $1 = 0; $1 < $2; $1++){
  38.                    $3
  39.                }'''
  40.     'if':
  41.         'prefix': 'if'
  42.         'body': '''if($1){
  43.                        $2
  44.                    }'''
  45.     'elseif':
  46.         'prefix': 'ei'
  47.         'body': '''elseif($1){
  48.                        $2
  49.                    }'''
  50.     'else':
  51.         'prefix': 'el'
  52.         'body': '''else{
  53.                        $1
  54.                    }'''
  55.     'strings library':
  56.         'prefix': 'str'
  57.         'body': '#include <string.h>'
  58.     'main':
  59.         'prefix': 'main'
  60.         'body': '''#include <stdio.h>
  61.                    int main(){
  62.                        $1
  63.  
  64.                        return 0;
  65.                    }'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement