This file contains hidden or 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
| // I wrote this for my own use, but please feel free to shear it or use it if you find it useful. | |
| //.scss-------------------------------------------------------------------------------------------------------------------- | |
| @mixin rounded($amount: "10px",$position: null) { | |
| @if $position != null { | |
| @if $position == "top" or $position == "bottom" { | |
| // top or bottom | |
| -webkit-border#{$position}-left-radius: $amount; |
This file contains hidden or 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
| $app->error(function(\Exception $e, $code) use ($app) { | |
| if (404 === $code) { | |
| $path = $app['request']->getPathInfo(); | |
| $path = explode('/',$path); | |
| echo $path[1]; | |
| if($path[1] == 'php'){ | |
| return $app->redirect($app['url_generator']->generate('php')); | |
| } | |
| if($path[1] == 'css'){ |
This file contains hidden or 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
| # WORKING FROM WINDOWS HOSTING SYMFONY APP ON SERVER ON LINUX (UBUNTU) | |
| # install Wirtual Box from Oracle | |
| # download and mount Ubuntu Desktop version | |
| # Install GuestEdytion | |
| # SYMFONY ENV CONFIGURATION INSTRUTION | |
| sudo apt-get update | |
| # INSTALL APACHE2 | |
| sudo apt-get-repository ppa:ptn107/apache |
This file contains hidden or 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
| # Cache and logs (Symfony2) | |
| /app/cache/* | |
| /app/logs/* | |
| !app/cache/.gitkeep | |
| !app/logs/.gitkeep | |
| # Cache and logs (Symfony3) | |
| /var/cache/* | |
| /var/logs/* | |
| !var/cache/.gitkeep |
This file contains hidden or 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
| sudo add-apt-repository universe | |
| sudo apt-get update | |
| sudo apt-get install nautilus-open-terminal | |
| sudo apt-get install nautilus-actions | |
| nautilus -q |
This file contains hidden or 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
| # skin to download with install instruction | |
| http://plugins.netbeans.org/plugin/51424/sublime-theme |
This file contains hidden or 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
| # Ubuntu - install sublime text 3 | |
| sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
| sudo apt-get update | |
| sudo apt-get install sublime-text-installer | |
| # create symlink | |
| sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl | |
| # use sublime like so: | |
| subl someFile.php |
This file contains hidden or 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
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR] | |
| RewriteCond %{HTTP_HOST} ^www.domain-name.com$ | |
| RewriteCond %{REQUEST_URI} !folder/ | |
| RewriteRule (.*) /folder/$1 [L] |
This file contains hidden or 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
| Wykorzystanie plików Cookies | |
| Serwis używa plików Cookies w celu: | |
| 1. poprawienia funkcjonalności strony internetowej; | |
| 2. poprawienia szybkości działania strony internetowej; | |
| 3. dopasowania treści do oczekiwań i zainteresowań użytkowników; | |
| 4. zbieraniu anonimowych zagregowanych statystyk przeglądania artykułów i produktów na stronach serwisu | |
| 5. wyświetlaniu treści reklamowych. | |
| Wykorzystując pliki Cookies serwis nigdy nie identyfikuje tożsamości użytkowników na podstawie danych przechowywanych w tych plikach. | |
| Przeglądarka internetowa umożliwia zmianę ustawień zapisywania plików Cookies lub usunięcie zapisanych plików. Zobacz jak zmienić te ustawienia w zależności od przeglądarki jakiej używasz: |
This file contains hidden or 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
| (function($){ | |
| $.fn.animateScroll = function(){ | |
| console.log($('[scroll]')); | |
| $('[scroll]').click(function(){ | |
| selector = $($(this).attr('scroll')); | |
| console.log(selector); | |
| console.log(selector.offset().top); | |
| $('html body').animate( | |
| {scrollTop: (selector.offset().top)}, //- $(window).scrollTop() | |
| 1000 |
OlderNewer