Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View marcoris's full-sized avatar
💭
👈 Developing...

Marco Ris marcoris

💭
👈 Developing...
View GitHub Profile
@marcoris
marcoris / Vagrantfile
Created March 11, 2019 13:44
Vagrant setup with MySQL import
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.network :forwarded_port, host: 4000, guest: 80
config.vm.network :forwarded_port, host: 4001, guest: 3306
end
$.fn.rdSlider=function(e){return this.each(function(){function t(){("left"==h.effect||"right"==h.effect)&&g.animate({"margin-left":m},500),("top"==h.effect||"bottom"==h.effect)&&g.animate({"margin-top":m},500)}function n(){b||(o.animate({width:"100%"},h.pause-h.animationSpeed,function(){a(),o.animate({width:"0"},h.animationSpeed)}),c=setInterval(function(){o.animate({width:"100%"},h.pause-h.animationSpeed,function(){a(),o.animate({width:"0"},h.animationSpeed)})},h.pause))}function a(){("left"==h.effect||"right"==h.effect)&&g.animate({"margin-left":r},h.animationSpeed,function(){s++,f(),l()}),("top"==h.effect||"bottom"==h.effect)&&g.animate({"margin-top":r},h.animationSpeed,function(){s++,f(),l()}),"fade"==h.effect&&(g.find("li:nth-child("+s+")").fadeOut(h.animationSpeed),s++,f(),l())}function f(){s==v.length&&"fade"!=h.effect&&(s=1,v.stop(),g.css(u,m)),s==v.length&&"fade"==h.effect&&(s=1,v.stop().fadeIn(h.animationSpeed))}function l(){$(".bullet").removeClass("bulletaktiv"),$(".bullet:nth-child("+s+")").addCl