ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Esuna Framework Snippets

by Idered ST2/ST3

Snippets for Esuna Framework

Labels snippets

Details

  • 2013.03.27.02.24.04
  • github.​com
  • github.​com
  • 5 years ago
  • 4 minutes ago
  • 4 years ago

Installs

  • Total 148
  • Win 96
  • OS X 27
  • Linux 25
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

esuna-snippets

Sublime Text snippets for Esuna Framework

Instalation

Using Package Control

This method is curently not available but soon, it'll be.

Manual instalation

Download this repo. In Sublime Text go to: Preferences->Browse Packages… Create there new folder called Esuna Framework Snippets and paste downloaded archive content.

Snippets

esuna-comment1

/** $1 */
/*---------------------------------------------------------------------------*/

$2

esuna-comment2

/** ${1:%|=}${2:[$3]} $4 */
/*------------------------------------*/
$5

esuna-comment3

/*------------------------------------*/

$1

esuna-open-graph

<meta name="og:title" content="$1" />
<meta name="og:type" content="${2:website}" />
<meta name="og:description" content="$3" />
<meta name="og:url" content="$4">

esuna-twitter-card

<meta name="twitter:card" content="${1:summary}">
<meta name="twitter:creator" content="@$2">
<meta name="twitter:site" content="@$3">
<meta name="twitter:url" content="$4">
<meta name="twitter:title" content="$5">
<meta name="twitter:description" content="$6">

esuna-dns-prefetch

<link rel="dns-prefetch" href="//p.twitter.com">
<link rel="dns-prefetch" href="//cdn.api.twitter.com">
<link rel="dns-prefetch" href="//ajax.googleapis.com">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//connect.facebook.net">
<link rel="dns-prefetch" href="//platform.twitter.com">

esuna-load-scripts

<div id="fb-root"></div>
<script>
    var scripts = {
        'facebook-jssdk': '//connect.facebook.net/en_US/all.js#xfbml=1',
        'googleplus'    : 'https://apis.google.com/js/plusone.js',
        'twitter-wjs'   : '//platform.twitter.com/widgets.js',
        'analytics'     : ('https:'==location.protocol?'//ssl':'//www') + '.google-analytics.com/ga.js'
    }, script, _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];

    for (var id in scripts) {
        script = document.createElement('script'); script.src = scripts[id];
        script.id = id;script.type = 'text/javascript'; script.async = true;
        document.getElementsByTagName('head')[0].appendChild(script);
    }
</script>