Skip to content

Instantly share code, notes, and snippets.

View VadimVBond's full-sized avatar
🏠
Working from home

vadimb VadimVBond

🏠
Working from home
View GitHub Profile
@VadimVBond
VadimVBond / gulpfile.js
Created October 12, 2016 12:00 — forked from agragregra/gulpfile.js
Image Resize + Watermark + Thumbnails
var src = "___library/7-kazan/1/*";
var dst = "_ready";
var gulp = require('gulp'),
imagemin = require('gulp-imagemin'),
cache = require('gulp-cache'),
del = require('del'),
imageResize = require('gulp-image-resize'),
watermark = require("gulp-watermark"),
rename = require("gulp-rename");
@VadimVBond
VadimVBond / jekyll-post-naxt-prev-navigation.rb
Created October 12, 2016 12:00 — forked from agragregra/jekyll-post-naxt-prev-navigation.rb
Jekyll Post Navigation (Prev & Next Posts)
module Jekyll
class WithinCategoryPostNavigation < Generator
def generate(site)
site.categories.each_pair do |category, posts|
posts.sort! { |a,b| b <=> a}
posts.each do |post|
index = posts.index post
next_in_category = nil
previous_in_category = nil
if index
@VadimVBond
VadimVBond / jquery-filter-by-field.js
Created October 12, 2016 12:01 — forked from agragregra/jquery-filter-by-field.js
jQuery Input Field Filter
$(".city-input").keyup(function() {
filter(this);
});
function filter(element) {
var value = $(element).val().toLowerCase();
$("[data-filter]").each(function () {
var $this = $(this),
lower = $this.data("filter").toLowerCase();
if (lower.indexOf(value) > -1) {
$this.show();
@VadimVBond
VadimVBond / jekyll-menu.html
Created October 12, 2016 12:01 — forked from agragregra/jekyll-menu.html
Jekyll Menu
<ul>{% for my_page in site.pages %}
{% if my_page.title %}
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
{% endif %}
{% endfor %}</ul>
{% for post in site.categories.[page.category] limit: 8 %}
{% include photo-item.html %}
{% endfor %}
{{ post.content | strip_html | truncatewords: 28 }}
@VadimVBond
VadimVBond / button.sass
Created April 12, 2017 11:42 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600