Skip to content

Instantly share code, notes, and snippets.

View ihortkachuk's full-sized avatar

Ihor Tkachuk ihortkachuk

View GitHub Profile
/**
* Для плавного перехода по ссылкам
*/
$(document).ready(function () {
$('.panel-nav a[href="#about-us"]').addClass('active');
$(document).on("scroll", onScroll);
//smoothscroll
$('.panel-nav a[href^="#"]').on('click', function (e) {
e.preventDefault();
$(document).off("scroll");
<svg width="925" height="605" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path data-over-line="" d="M90,5
L845,5
A70,70,0,0,1,845,158
L180,158
A60,60,0,0,0,180,288
L843,288
A70,70,0,0,1,843,448
L81,448
A70,70,0,0,0,81,602
@ihortkachuk
ihortkachuk / filling.js
Created December 25, 2014 07:41
Заполняшка
$(window).scroll(function() {
drawLines();
});
//If you have more than one SVG per page this will pick it up
function drawLines(){
$.each($("path"), function(i, val){
var line = val;
drawLine($(this), line);
});
<svg id="Layer_1" class="filling" width="925" height="605" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g id="Layer_2">
<path data-over-line="" d="M90,5
L845,5
A70,70,0,0,1,845,158
L180,158
A60,60,0,0,0,180,288
L843,288
A70,70,0,0,1,843,448
L81,448
/* ------------ Dropdown contacts block ------------- */
#contact-dropdown {
width: 420px;
height: 330px;
background: #ffffff;
position: absolute;
top: 98px;
left: -100px;
padding: 37px 30px;
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
$(document).ready(function () {
function initialize() {
var mapProp = { //describe Gmap properties
center: new google.maps.LatLng(55.788818, 37.502207),
zoom: 16,
maxZoom: 17,
minZoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: false,
@ihortkachuk
ihortkachuk / color
Created April 27, 2015 11:05
Color terminal
export PS1="\[\033[35m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
# export LSCOLORS=ExFxBxDxCxegedabagacad
export LSCOLORS=ExFxBxDxBxegedabagacGc
@ihortkachuk
ihortkachuk / postfix.md
Last active December 14, 2015 22:25
Config Postfix Mac OS X Yosemite 10.10

#Config Postfix Mac OS X Yosemite 10.10

###Step 1. Edit Postfix config file Open a terminal and edit the file main.cf:

sudo vi /etc/postfix/main.cf

First check Postfix is configured correctly, look for the following lines:

(function (window, document, undefined) {
/*
* Grab all iframes on the page or return
*/
var iframes = document.getElementsByTagName('iframe');
/*
* Loop through the iframes array
*/
"use strict";
let data = [
{
"previewHeight":99,
"likes":41,
"favorites":38,
"tags":"tulips, yellow, flowers",
"webformatHeight":426,
"views":27723,