Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko
IgorGavrilenko / uniform list item v1
Last active September 23, 2016 21:23
uniform list item v1
ul {
text-align: justify;
}
ul li {
display: inline-block;
}
ul:after {
width: 100%;
height: 0px;
visibility: hidden;
@IgorGavrilenko
IgorGavrilenko / st 3 snippets scope
Last active September 23, 2016 21:25
st 3 snippets scope
https://gist.github.com/iambibhas/4705378
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
img-responsive {
width: auto\9;
max-width: 100%;
height: auto;
}
{
"BracketHighlighter": true,
"Color Highlighter": true,
"Emmet": true,
"ShowEncoding": true,
"always_show_minimap_viewport": true,
"auto_complete ": false,
"auto_complete_commit_on_tab": true,
"auto_complete_cycle": true,
"auto_complete_selector": false,
@IgorGavrilenko
IgorGavrilenko / git config
Last active September 23, 2016 21:35
git config
[filter "lfs"]
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[core]
autocrlf = false
safecrlf = false
editor = 'C:/Program Files/Sublime Text 3/sublime_text.exe' -w
[alias]
@IgorGavrilenko
IgorGavrilenko / max Height
Last active September 23, 2016 21:30
max Height
var maxHeight = 0;
$("div").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
});
$("div").height(maxHeight);
@IgorGavrilenko
IgorGavrilenko / scroll Top
Last active September 23, 2016 21:36
scroll Top
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
$('.point-1').click(function(e) {
e.preventDefault();
$('html, body').animate({
scrollTop: $('.item').offset().top
@IgorGavrilenko
IgorGavrilenko / tabs
Last active August 16, 2017 16:27
tabs
$(function() {
var tabs = function (tabsLink, tabsCont, tabsActive) {
$(tabsLink).each(function(a){
$(this).click(function(){
$(tabsCont).removeClass('is-active').eq(a).addClass(tabsActive);
});
});
$(tabsLink).each(function(a){
$(this).click(function(){
$(tabsLink).removeClass(tabsActive);
@IgorGavrilenko
IgorGavrilenko / hide empty element
Last active September 23, 2016 21:11
hide empty element
$(":empty").parent().hide();
$(":empty").hide();
@IgorGavrilenko
IgorGavrilenko / menu link
Last active September 23, 2016 21:09
menu link