Skip to content

Instantly share code, notes, and snippets.

Avatar

IgorGavrilenko

View GitHub Profile
View uniform list item v1
ul {
text-align: justify;
}
ul li {
display: inline-block;
}
ul:after {
width: 100%;
height: 0px;
visibility: hidden;
View 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++
View gist:27eab397b788cd24a186
img-responsive {
width: auto\9;
max-width: 100%;
height: auto;
}
View gist:669c8f3647b81b550d29
{
"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,
View 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]
View max Height
var maxHeight = 0;
$("div").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
});
$("div").height(maxHeight);
View 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
View 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);
View hide empty element
$(":empty").parent().hide();
$(":empty").hide();
View menu link