Skip to content

Instantly share code, notes, and snippets.

View ihortkachuk's full-sized avatar

Ihor Tkachuk ihortkachuk

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<style>
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
html { backgr
"use strict";
let data = [
{
"previewHeight":99,
"likes":41,
"favorites":38,
"tags":"tulips, yellow, flowers",
"webformatHeight":426,
"views":27723,
(function (window, document, undefined) {
/*
* Grab all iframes on the page or return
*/
var iframes = document.getElementsByTagName('iframe');
/*
* Loop through the iframes array
*/
@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:

@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
$(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,
/* ------------ 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);
<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
@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 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