Skip to content

Instantly share code, notes, and snippets.

Avatar

Ihor Tkachuk ihortkachuk

  • Ukraine
View GitHub Profile
View error.html
<!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
View data.js
"use strict";
let data = [
{
"previewHeight":99,
"likes":41,
"favorites":38,
"tags":"tulips, yellow, flowers",
"webformatHeight":426,
"views":27723,
View iframe.js
(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 Dec 14, 2015
Config Postfix Mac OS X Yosemite 10.10
View postfix.md

#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 Apr 27, 2015
Color terminal
View color
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
View gmap.js
$(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,
View dropdown.css
/* ------------ 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);
View gist:f073b9abcf8448d1795f
<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 Dec 25, 2014
Заполняшка
View filling.js
$(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);
});
View gist:3f7fde9f6582dbe7bcd0
<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
You can’t perform that action at this time.