Skip to content

Instantly share code, notes, and snippets.

View ahaywood's full-sized avatar

Amy Haywood Dutton ahaywood

View GitHub Profile
{
"exclude_folders": [
"*.git",
".sass-cache",
"*bower_components*",
"*node_modules*"
],
"exclude_files": [
"*jquery.js",
"*modernizr.js",
<snippet>
<content><![CDATA[
<?php get_template_part('${1}', '${2}'); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>wppart</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<?php include (TEMPLATEPATH . '/${1:folder}/${2:file}.php' ); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>include</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<img src="http://placehold.it/${1:width}x${2:height}/${3:bg color (no #)}/${4:text color (no #)}" alt="${5}"/>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ph</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>index.html</scope> -->
</snippet>
<snippet>
<content><![CDATA[
z-index: map-get(\$zindex, ${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>z-</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.scss</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<span data-picture>
<span data-src="images/${1}.${2}"></span>
<span data-src="images/${1}@2x.${2}" data-media="(min-device-pixel-ratio: 2.0)"></span>
</span>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>pfret</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<snippet>
<content><![CDATA[
@include breakpoint(${1}) { ${2} }
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>breakp</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@ahaywood
ahaywood / start_js.sublime-snippet
Last active August 29, 2015 14:13
Sublime Snippet: JS Starter file
<snippet>
<content><![CDATA[
jQuery ( function(\$) {
var ${1} = new ${2}(\$);
${1}.init();
});
function ${2}(\$)
@ahaywood
ahaywood / preferences.sublime-settings
Created January 22, 2015 02:56
Sublime Preferences
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
@ahaywood
ahaywood / composer.json
Created January 9, 2015 03:14
Create a Composer Plugin
{
"name": "ahaywood/ahha-gravityforms",
"type": "wordpress-plugin",
"require": {
"composer/installers": "v1.0.6"
}
}