Skip to content

Instantly share code, notes, and snippets.

@th3mon
Last active August 29, 2015 14:09
Show Gist options
  • Save th3mon/86c11b901b930eb6805f to your computer and use it in GitHub Desktop.
Save th3mon/86c11b901b930eb6805f to your computer and use it in GitHub Desktop.
Sublime Text snippets
<snippet>
<content><![CDATA[
console.${1:log}($2);
]]></content>
<tabTrigger>cl</tabTrigger>
</snippet>
<snippet>
<content><![CDATA[
function $1 () {
if (! (this instanceof F) ) {
return new $1();
}
$2
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>constructor</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
body {border: 3px solid red;}
$1
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>deb</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
document.documentElement.clientHeight
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>height</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
@media (min-width: $1px) {
$2
}
]]></content>
<tabTrigger>mq</tabTrigger>
</snippet>
<snippet>
<content><![CDATA[
(function ($1) {
$3
}($2));
]]></content>
<tabTrigger>siaf</tabTrigger>
</snippet>
<snippet>
<content><![CDATA[
document.documentElement.clientWidth
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>width</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment