Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idered/esuna-snippets

Snippets for Esuna Framework
https://github.com/idered/esuna-snippets

Last synced: 14 days ago
JSON representation

Snippets for Esuna Framework

Awesome Lists containing this project

README

        

# esuna-snippets

Sublime Text snippets for [Esuna Framework](http://idered.pl/esuna)

## Instalation

**Using Package Control**

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

**Manual instalation**

[Download](https://github.com/Idered/esuna-snippets/archive/master.zip) 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**

```CSS

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

$2
```

**esuna-comment2**

```CSS

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

**esuna-comment3**

```CSS

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

$1
```

**esuna-open-graph**

```CSS

```

**esuna-twitter-card**

```CSS

```

**esuna-dns-prefetch**

```CSS

```

**esuna-load-scripts**

```CSS

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);
}

```