Skip to content

Instantly share code, notes, and snippets.

View sshyran's full-sized avatar
:octocat:
Dev

Serhii Shyran sshyran

:octocat:
Dev
View GitHub Profile
@sshyran
sshyran / haml-sass builder
Created September 14, 2016 18:16 — forked from peterkappus/haml-sass builder
Haml/Sass builder script (great for Wordpress themes & other HTML-like templates)
require 'digest/md5'
=begin
About:
This script automatically runs on a 2-second loop, searches the current directory for haml & sass files that have been modified since the last iteration and builds them as needed into a file with the same name minus the .haml/sass extension. I wrote it so I could use Haml & Sass to develop Wordpress themes.
How-to:
1) Name your source files with the extension you'd like them to have, then add ".haml" or ".sass" as appropriate...
For example: index.php.haml and styles.css.sass
@sshyran
sshyran / libsass-install.bash
Created September 4, 2016 18:53 — forked from edouard-lopez/libsass-install.bash
Installing/Compiling libsass and sassc on Ubuntu 14.04+/Linux Mint 17+ (needed by node-sass)
# Based on https://github.com/sass/libsass/wiki/Building-with-autotools
# Install dependencies
apt-get install automake libtool
# Fetch sources
git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc
# Create configure script
@sshyran
sshyran / sm-annotated.html
Created July 26, 2016 21:32 — forked from hdragomir/sm-annotated.html
The deferred font loading logic for Smashing Magazine. http://www.smashingmagazine.com/
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
#!/usr/bin/env bash
# vim:noet:sts=4:ts=4:sw=4:tw=120
#=======================================================================================================================
# (c) 2014 Clemens Lang, neverpanic.de
# See https://neverpanic.de/blog/2014/03/19/downloading-google-web-fonts-for-local-hosting/ for details.
#
# With modifications by
# - Chris Jung, campino2k.de, and
# - Robert, github.com/rotx.
@sshyran
sshyran / ttf2woff2.md
Created April 19, 2016 11:29 — forked from sergejmueller/ttf2woff2.md
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
/**
* Change on single product panel "Product Description"
* since it already says "features" on tab.
*/
function devswave_product_description_heading() {
return __('YOUR CUSTOM TITLE', 'woocommerce');
}
add_filter('woocommerce_product_description_heading',
'devswave_product_description_heading');
Menu with background video overlay
----------------------------------
A [Pen](http://codepen.io/nemmoj/pen/pybxKp) by [ne.mmoj](http://codepen.io/nemmoj) on [CodePen](http://codepen.io/).
[License](http://codepen.io/nemmoj/pen/pybxKp/license).