Skip to content

Instantly share code, notes, and snippets.

@vmrfriz
Last active April 19, 2018 19:22
Show Gist options
  • Save vmrfriz/55c8d174dfe9825420111c9b51f18038 to your computer and use it in GitHub Desktop.
Save vmrfriz/55c8d174dfe9825420111c9b51f18038 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
* { box-sizing: border-box }
html {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
font-size: 16px;
height: 100%;
}
body {
background-color: #eee;
height: 100%;
margin: 0;
padding: 0;
}
.container {
background-color: #fff;
border-radius: 2px;
box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
margin: 10px auto;
max-width: 460px;
min-width: 300px;
padding: 15px;
width: 90%;
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>basecss</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.css</scope>
</snippet>
<snippet>
<content><![CDATA[
console.error(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ce</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.group(${2});${1:
${3}
console.groupEnd();}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cg</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.groupCollapsed(${2});${1:
${3}
console.grpupEnd();}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cgc</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.groupEnd();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cge</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.warn(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cw</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
[
{ "keys": ["d", "f"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
]
<snippet>
<content><![CDATA[
<?php the_field("${1}"); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>fld</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>${1:Главная}</title>
${2:
<link rel="stylesheet" href="../css/bootstrap.min.css">}
<link rel="stylesheet" href="../css/${3:main}.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
${5}
<!-- scripts -->${4:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>}${2:
<script src="js/bootstrap.min.js"></script>}
</body>
</html>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>html5</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<img src="${1}.svg" onerror="this.src='${1}.png'" alt="${2}">
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>imgsvg</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<% include('__header.html') %>
${1}
<% include('__footer.html') %>
]]></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>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
<?php echo get_option('${1}'); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>opt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"All Autocomplete",
"AutoFileName",
"AutoHotkey",
"Bootstrap 3 Autocomplete",
"Bootstrap 3 Snippets",
"BracketHighlighter",
"CSScomb",
"DocBlockr",
"EasyMotion",
"Emmet",
"FileBrowser",
"HTML-CSS-JS Prettify",
"Jade",
"LESS",
"Less2Css",
"lessc",
"Markdown Preview",
"MarkdownLivePreview",
"Material Theme",
"Package Control",
"Pawn syntax",
"PlainTasks",
"Sass",
"SFTP",
"SublimeOnSaveBuild",
"Sync Settings"
]
}
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "all",
"font_size": 13,
"highlight_line": true,
"ignored_packages":
[
"Less2Css",
"lessc",
"SublimeOnSaveBuild"
],
"indent_to_bracket": true,
"show_encoding": true,
"tab_size": 2,
"theme": "Adaptive.sublime-theme",
"trim_trailing_white_space_on_save": true,
"word_wrap": false
}
<snippet>
<content><![CDATA[
echo '<pre>'.print_r(${1}, true).'</pre>';
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>print_r</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
{
"lesscCommand": "/usr/local/share/npm/bin/lessc"
}
<snippet>
<content><![CDATA[
<picture>
<svg type="image/svg+xml" srcset="${1}.svg">
<img src="${1}.png" alt="">
</picture>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>svg-img</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