Skip to content

Instantly share code, notes, and snippets.

View .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@vikt82
vikt82 / cloudSettings
Last active Jul 13, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-07-03T14:25:11.061Z","extensionVersion":"v3.4.3"}
View stylus px to rem
set-font-size(value) {
font-size: value; /* добавляем PX как подстраховку */
if (value is inherit) {
/* делаем если нет значения для шрифта */
} else {
font-size: remify(value);
}
}
View wp_style.css
/*
Theme Name:
Theme URI:
Author:
Author URI:
Description:
Version:
License:
License URI:
Tags:
@vikt82
vikt82 / show-hight.txt
Created Mar 11, 2015
проказывает при навидении и прячет при отводе
View show-hight.txt
показывает при навидении мышки и прячет при отводе
<script>
$('#show-menu')
.mouseenter(function() {
$('.other-drop').show();
})
.mouseleave(function() {
$('.other-drop').hide();
});
</script>
@vikt82
vikt82 / зкщсуте_ыскщдд.txt
Created Mar 11, 2015
определение процентов скрола
View зкщсуте_ыскщдд.txt
опредиления процентов скролаы
var tmp = getScrollXY();
var fullHeight = $('body').height();
var perec = tmp[1] * 100/ fullHeight;
console.log(perec + '%');
function getScrollXY() {
var scrOfX = 0, scrOfY = 0;
if( typeof( window.pageYOffset ) == 'number' ) {
@vikt82
vikt82 / column_height.txt
Created Mar 11, 2015
колонки одинаковой высоты
View column_height.txt
Колонки одинаковой высоты
$(document).ready(function(){
//set the starting bigestHeight variable
var biggestHeight = 0;
//check each of them
$('.equal_height').each(function(){
//if the height of the current element is
//bigger then the current biggestHeight value
if($(this).height() > biggestHeight){
@vikt82
vikt82 / link_color.txt
Created Mar 11, 2015
ссылка изменяющая цвета
View link_color.txt
@vikt82
vikt82 / hightlight_navigation.txt
Created Mar 11, 2015
подсветка навигации
View hightlight_navigation.txt
---------------------- Подсветка навигации ---------------------------------
Источник_ http://demiart.ru/forum/journal.php?user=1551377&comm=212211
( <body onload="highlight()">
<script language="JavaScript" type="text/javascript">highlight()</script>
<ul>
<li class="nav"><a href="coding.html">Программирование</a></li>
<li class="nav"><a href="design.html">Дизайн</a></li>
<li class="nav"><a href="page-proofs.html">Верстка</a></li>
<li class="nav"><a href="prices.html">Цены</a></li>
View clear_input.txt
---------------------- Отчистка поля ввода ---------------------------------
<div class=""><input type="text" name="" value="Login..." class="f_input" onblur="if(this.value=='') this.value='Login...';" onfocus="if(this.value=='Login...') this.value='';" /></div>