Skip to content

Instantly share code, notes, and snippets.

@agragregra
agragregra / install
Last active June 3, 2019 14:48
Fast Install Node.js, Gulp & Jekyll into Windows 10/Ubuntu/Mint
sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl ruby2.5 ruby2.5-dev gcc make g++ libffi-dev; curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo gem i jekyll -v 3.7.2; sudo gem i jekyll-paginate-v2; sudo npm i -g gulp rimraf npm-check-updates; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config
@agragregra
agragregra / owl-equal-heights.js
Created March 5, 2017 02:37
Owl Carousel Equal Heights
onRefresh: function () {
owl.find('div.owl-item').height('');
},
onRefreshed: function () {
owl.find('div.owl-item').height(owl.height());
}
@agragregra
agragregra / scroll-top.html
Last active December 25, 2022 19:51
Scroll Top Button
<div class="top" title="Наверх"><i class="fa fa-angle-double-up"></i></div>
.top
position: fixed
bottom: 25px
background-color: #E0E0E0
border-radius: 10em
color: #666
font-size: 26px
width: 50px
@agragregra
agragregra / window-resize-end.js
Last active October 3, 2022 19:29
Window resize-end function
//Resize Window
function onResize() {
};
var doit;
doit = setTimeout(onResize, 400);
window.onresize = function() {
clearTimeout(doit);
doit = setTimeout(onResize, 400);
};
@agragregra
agragregra / nth-child-loop.sass
Created December 20, 2016 16:09
Sass nth-child background-color loop
$colors: $red, $blue, $accent
@for $i from 1 through length($colors)
.carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i})
background-color: nth($colors, $i)
@agragregra
agragregra / button.sass
Last active April 2, 2024 12:36
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
@agragregra
agragregra / webvisor.js
Last active February 8, 2018 14:17
Open All Webvisor Items
// Open All Webvisor Items
var time = 1000;
$(".toggle-expand").each(function() {
var ths = $(this);
setTimeout(function() {
ths.click();
}, time);
time += 1000;
});
@agragregra
agragregra / sitemap.xml
Created October 12, 2016 21:01
Jekyll Sitemap Without Plugins
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}{% unless post.published == false %}<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.date %}<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>{% endif %}
</url>{% endunless %}
@agragregra
agragregra / cacert.pem
Created October 10, 2016 13:10
cacert.pem
##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Wed Sep 14 03:12:05 2016
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
##
@agragregra
agragregra / .htaccess
Created October 10, 2016 10:49
htaccess wget disable
RewriteCond %{HTTP_USER_AGENT} wget [NC]
RewriteRule .* - [F]