Skip to content

Instantly share code, notes, and snippets.

@harsaharsa
Created February 23, 2015 11:06
Show Gist options
  • Select an option

  • Save harsaharsa/3948fb999794892ec5ab to your computer and use it in GitHub Desktop.

Select an option

Save harsaharsa/3948fb999794892ec5ab to your computer and use it in GitHub Desktop.
Supersonic demo video Atom snippets
'.html':
'super-navigate':
'prefix': 'sn'
'body': '<super-navigate>'
'super-navigate with view id':
'prefix': 'sn-v'
'body': """
<super-navigate view-id="$1">
$2
</super-navigate>
"""
'super-navigate with full tag':
'prefix': 'sn-d'
'body': '<super-navigate view-id="$1" data-params-id="">\n \n</super-navigate>'
'super-navbar':
'prefix': 'snb'
'body': """
<super-navbar>
<super-navbar-title>
$1
</super-navbar-title>
</super-navbar>
"""
'super-navbar-title':
'prefix': 'snb-t'
'body': '<super-navbar-title>'
'super-navbar-button':
'prefix': 'snb-b'
'body': """
<super-navbar-button onclick="$1">
$2
</super-navbar-button>
"""
'super-modal-show':
'prefix': 'sm-s'
'body': """
<super-modal-show view-id="$1">
$2
</super-modal-show>
"""
'ionic-button-block-positive':
'prefix': 'btn-block-pos'
'body': """
<button onclick="$1" class="button button-block button-positive">
$2
</button>
"""
'ionic-button-block':
'prefix': 'btn-block'
'body': '<button class="button button-block">\n $1\n</button>'
'super-data-repeat':
'prefix': 'sd-r'
'body': '<super-data-repeat model="$1">\n \n</super-data-repeat>'
'super-data':
'prefix': 'sd'
'body': '<super-data model="$1">\n \n</super-data>'
'Ionic list item':
'prefix': 'li-i'
'body': '<li class="item">\n $1\n</li>'
'Ionic unordered list':
'prefix': 'ul-l'
'body': '<ul class="list">\n $1\n</ul>'
'Script with function':
'prefix': 'script-fn'
'body': '<script>\n function $1() {\n \n }\n</script>'
'then':
'prefix': '.then'
'body': '.then( function() {\n \n});'
'func':
'prefix': 'func'
'body': """
function $1() {
$2
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment