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
// Seach WP posts per page | |
add_filter('searchwp_posts_per_page', function($posts_per_page, $engine, $terms, $page) { | |
return 20; | |
}, 99, 99); |
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
FROM php:7-fpm | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug | |
RUN apt-get update && \ | |
apt-get install -y nginx vim psmisc mysql-server php5-mysql | |
RUN docker-php-ext-install mysqli pdo pdo_mysql |
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
<div class="col-1">1</div> | |
<div class="col-2">2</div><div class="col-12">12</div> | |
<div class="col-3">3</div><div class="col-11">11</div> | |
<div class="col-4">4</div><div class="col-10">10</div> | |
<div class="col-5">5</div><div class="col-9">9</div> | |
<div class="col-6">6</div><div class="col-8">8</div> | |
<div class="col-7">7</div><div class="col-7">7</div> | |
<div class="col-8">8</div><div class="col-6">6</div> | |
<div class="col-9">9</div><div class="col-5">5</div> | |
<div class="col-10">10</div><div class="col-4">4</div> |
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
- (1..12).each do |i| | |
%div{:class => "item-"#{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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$primary-colors: ( | |
"red": (rbga(255, 0, 0, .5), rbg(255, 0, 0)), | |
"green": (rbga(255, 0, 0, .5), rbg(0, 255, 0)), | |
"blue": (rbga(255, 0, 0, .5), rbg(0, 0, 255)) | |
); |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$primary-colors: ( | |
"red": "#ff0000", | |
"green": "#00ff00", | |
"blue": "#0000ff" | |
); |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
//--------------------------------------// | |
// Media queries | |
//--------------------------------------// | |
$breakpoints: ( | |
"s": (min-width, 48em), |
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
<h1>Horses with backgorunds!</h1> | |
<div class="horses--horse"></div> | |
<div class="horses--pony"></div> | |
<div class="horses--maxi-pony"></div> | |
<div class="horses--mini-horse"></div> |
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
<h2>nth()</h2> | |
<code>$hrs: pony, horse, mini-horse, maxi-pony;</code> | |
<div class="horses-nth-1"></div> | |
<div class="horses-nth-2"></div> | |
<div class="clear"></div> | |
<h2>Loop</h2> |
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
#!/usr/bin/env bash | |
# | |
# Nginx - new server block | |
# Functions | |
ok() { echo -e '\e[32m'$1'\e[m'; } # Green | |
die() { echo -e '\e[1;31m'$1'\e[m'; exit 1; } | |
# Variables | |
NGINX_AVAILABLE_VHOSTS='/etc/nginx/sites-available' |
NewerOlder