Skip to content

Instantly share code, notes, and snippets.

View StefanoRausch's full-sized avatar

Stefano F. Rausch StefanoRausch

  • Johannesburg - RSA
View GitHub Profile
@StefanoRausch
StefanoRausch / template-file.sublime-snippet
Created February 14, 2013 09:14
PHP : template file
<snippet>
<content><![CDATA[
/**
* ${1:file-name}.php
*
* PHP version 5
*
* LICENSE : MIT - Copyright (C) ${2:2013} ${3:Stefano F. Rausch < stefano@rausch-e.net >}
*
* package : ${4:KitFramework}${5:/${6:sub-package}}
@StefanoRausch
StefanoRausch / file-is-depricated.sublime-snippet
Created February 14, 2013 09:08
SCSS : file is deprecated
<snippet>
<content><![CDATA[
* deprecated : File deprecated in Release ${0:release-version}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>file-is-depricated</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>file is deprecated</description>
@StefanoRausch
StefanoRausch / file-description.sublime-snippet
Created February 14, 2013 09:08
SCSS : file description
<snippet>
<content><![CDATA[
* ${0:additional-file-description}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>file-description</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>additional file description</description>
@StefanoRausch
StefanoRausch / template-file.sublime-snippet
Created February 14, 2013 09:02
SCSS : template file
<snippet>
<content><![CDATA[
/**
* ${1:file-comment}
*
* ${2:CSS} version ${3:3}
*
* LICENSE : MIT - Copyright ( C ) ${4:2013} ${5:Stefano F. Rausch < stefano@rausch-e.net >}
*
* @package ${6:Framework}${7:/${8:sub-package}}
<snippet>
<content><![CDATA[
@mixin ${1:name}${2:( ${3:\$${4:parameters}} )}
{
${5:code}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>mixin-definition</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<snippet>
<content><![CDATA[
@function ${1:name}( ${2:\$${3:parameters}} )
{
${4:code}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>function-definition</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<snippet>
<content><![CDATA[
@while ${1:condition} {
${2:code}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>while-condition</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<snippet>
<content><![CDATA[
@include ${1:mixin}( ${2:\$${3:arguments}} );
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>include-mixin-with-arguments</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>@include mixin with arguments</description>
<snippet>
<content><![CDATA[
@include ${1:mixin}${2:( ${3:\$${4:arguments}} )};$0
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>include-mixin</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>@include mixin</description>
<snippet>
<content><![CDATA[
@import "${1:file}${2:.scss}";$0
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>import-file</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.scss</scope>
<!-- Optional: Set a description to override the snippet's name -->
<description>@import file</description>