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
// my sync-settings |
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
# add git flow completion shortcuts | |
source ~/git-flow-completion.bash | |
# reload source | |
alias brc="source ~/.bashrc" | |
# open explorer in current folder | |
alias e.="explorer ." | |
# git: log pretty |
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
// get nginx key | |
curl -O https://nginx.org/keys/nginx_signing.key | |
// install | |
apt-key add nginx_signing.key |
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
<!-- main wrapper --> | |
<div class="tabs"> | |
<!-- radio block will be hidden, but will be used to control the tabs --> | |
<input class="tabs__radio" id="myTab1" type="radio" name="myTabs" value="1"> | |
<input class="tabs__radio" id="myTab2" type="radio" name="myTabs" value="2"> | |
<input class="tabs__radio" id="myTab3" type="radio" name="myTabs" value="3"> | |
... | |
<input class="tabs__radio" id="myTab10" type="radio" name="myTabs" value="10"> | |
<!-- labels will be display as actual tabs --> |
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
// import cita-flex mixins | |
@import './bower_components/cita-flex/css/src/_cita-flex-mixins.scss'; | |
//default variables | |
$size: .5rem; | |
$background: #e5e5e5; | |
$background--active: #fefefe; | |
$color: #4e4e4e; | |
$color--disabled: #8e8e8e; | |
$breakpoint: 600px; |
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
<IfModule mpm_prefork_module> | |
StartServers 1 | |
MinSpareServers 1 | |
MaxSpareServers 3 | |
MaxClients 6 | |
MaxRequestsPerChild 0 | |
</IfModule> | |
<IfModule mpm_worker_module> | |
StartServers 1 |
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
// Redis installation for Ubuntu 16.04 with PHP7 | |
// https://guides.wp-bullet.com/install-redis-object-cache-for-wordpress-php-7-on-ubuntu-16-04/ | |
// https://www.digitalocean.com/community/tutorials/how-to-configure-redis-caching-to-speed-up-wordpress-on-ubuntu-14-04 | |
apt-get update | |
apt install build-essential -y | |
cd /tmp | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xzf redis* | |
cd redis* |
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
// you can write to stdout for debugging purposes, e.g. | |
// console.log('this is a debug message'); | |
// 80% | |
function binary(N) { | |
var half = Math.floor(N / 2); | |
var r = (N % 2).toString(); | |
if(N >= 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
* { | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} |
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
@mixin css-locks($properties, $min-vw, $max-vw, $min-value, $max-value) { | |
@each $property in $properties { | |
#{$property}: $min-value; | |
} | |
@media screen and (min-width: $min-vw) { | |
@each $property in $properties { | |
#{$property}: calc(#{$min-value} + #{strip-unit($max-value - $min-value)} * (100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}); | |
} | |
} |