Skip to content

Instantly share code, notes, and snippets.

View idcooldi's full-sized avatar
🛶
Working

Nix idcooldi

🛶
Working
View GitHub Profile
@idcooldi
idcooldi / Parallax.js
Created November 11, 2015 15:33
Parallax Effect / по средствам анимации
$(window).scroll(function() {
var st = $(this).scrollTop() /10;
$(".object").css({
"transform" : "translate3d(0px, " + st + "%, 0px)",
"-webkit-transform" : "translate3d(0px, " + st + "%, 0px)"
});
});
<div class="sidebar-block">
<h4 class="title">Прямой эфир</h4>
<ul id="sidebar-pills" class="nav nav-pills">
<li class="active"><a href="#tab-comments" data-toggle="tab">Комментарии</a></li>
<li><a href="#tab-tickets" data-toggle="tab">Публикации</a></li>
<li><a href="#tab-job" data-toggle="tab">Работа</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="tab-comments">
<div class="comments"></div>
@idcooldi
idcooldi / docker-compose.yml
Created March 27, 2019 13:31 — forked from MKagesawa/docker-compose.yml
Docker-compose MySQL Image create multiple databases
# The official MySQL (https://hub.docker.com/_/mysql/) supports only one MYSQL_DATABASE environment variable.
# By modifying the entrypoint and passing shell script, you can create multiple dbs without having to make a mysql image just for this purpose.
version: '3'
services:
# Some other service connecting to mysql
db:
image: mysql:5.6