Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/idered/esuna-snippets
- Owner: Idered
- Created: 2013-03-25T23:49:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-27T02:24:16.000Z (over 11 years ago)
- Last Synced: 2023-03-18T23:08:37.537Z (over 1 year ago)
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
}```