This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Material Icons'; | |
font-style: normal; | |
font-weight: 400; | |
src: url('../fonts/material-icons/materialicons-regular.woff2') format('woff2'), | |
url('../fonts/material-icons/materialicons-regular.woff') format('woff'), | |
url('../fonts/material-icons/materialicons-regular.ttf') format('truetype'); | |
} | |
.material-icons { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A simple snippet which allows to build a CSS 3D box with the given dimensions. | |
Used PostCSS and CSSNext. | |
Source: https://gist.github.com/gaintsev/e054f05fb67909a82244fd5e026b377a | |
*/ | |
:root { | |
/*Set Box Sizes*/ | |
--boxWidth: 260px; | |
--boxHeight: 400px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Future CSS Hard Reset | |
Source: https://gist.github.com/gaintsev/ff039fe39f633d64178273537684292f | |
*/ | |
html * { | |
all: initial; | |
cursor: default; | |
font-family: inherit; | |
font-weight: inherit; | |
text-align: inherit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains example.com \ | |
--no-parent \ | |
www.example.com/some/page/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies: | |
# ------------ | |
# xclip — read/write to clipboard | |
# jq — parse JSON | |
apiKey="" # Yandex API key, see here https://tech.yandex.ru/keys/get/?service=trnsl | |
firstLang=$1 | |
lastLang=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $animationElements = $('.animate'); | |
var $window = $(window); | |
function checkIfInView() { | |
var windowHeight = $window.height(); | |
var windowTopPosition = $window.scrollTop(); | |
var windowBottomPosition = (windowTopPosition + windowHeight); | |
$.each($animationElements, function() { | |
var $element = $(this); | |
var elementHeight = $element.outerHeight(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Duplicate Me! | |
* Copyright: (c)2016. Vladimir Gaintsev, [email protected]. All rights reserved. | |
* | |
*/ | |
/*============================================= | |
= Check Active Document = | |
=============================================*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIRECTORY="thumbnails" | |
if [ ! -d "$DIRECTORY" ]; then | |
mkdir "$DIRECTORY" | |
fi | |
for i in *.jpg; do | |
convert $i -resize 300x225^ -gravity center -crop 300x225+0+0 thumbnails/$(basename $i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_test_type() | |
{ | |
$labels = array( | |
'name' => _x('Тест', 'test'), | |
'singular_name' => _x('Тест', 'test'), | |
'menu_name' => _x('Тест', 'test'), | |
'name_admin_bar' => _x('Тест', 'test'), | |
'add_new' => _x('Добавить новый', 'test'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xprop |awk '/WM_CLASS/{print $4}' |