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 / cloudSettings
Last active Jul 13, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
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 URI:
License URI:
vikt82 / show-hight.txt
Created Mar 11, 2015
проказывает при навидении и прячет при отводе
View show-hight.txt
показывает при навидении мышки и прячет при отводе
.mouseenter(function() {
.mouseleave(function() {
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 / column_height.txt
Created Mar 11, 2015
колонки одинаковой высоты
View column_height.txt
Колонки одинаковой высоты
//set the starting bigestHeight variable
var biggestHeight = 0;
//check each of them
//if the height of the current element is
//bigger then the current biggestHeight value
if($(this).height() > biggestHeight){
vikt82 / link_color.txt
Created Mar 11, 2015
ссылка изменяющая цвета
View link_color.txt
vikt82 / hightlight_navigation.txt
Created Mar 11, 2015
подсветка навигации
View hightlight_navigation.txt
---------------------- Подсветка навигации ---------------------------------
( <body onload="highlight()">
<script language="JavaScript" type="text/javascript">highlight()</script>
<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>