Behold! Intersection Observers at work!
First, update your source code to move your image sources in to data attributes.
| <?php // ~/.config/psysh/config.php | |
| // Anything not Laravel - let's try to autoload something likely to exist | |
| if (!defined('LARAVEL_START')) { | |
| return [ | |
| 'defaultIncludes' => [ | |
| getcwd().'/vendor/autoload.php', | |
| getcwd().'/bootstrap/autoload.php', | |
| ], | |
| ]; |
| /* the page should not change width as content is loaded */ | |
| body { | |
| overflow-y: scroll; | |
| } | |
| /* block scrolling without losing the scroll bar and shifting the page */ | |
| /* add this class when a modal is open */ | |
| body.block-scroll { | |
| overflow: hidden; | |
| overflow-y: scroll !important; |
| <?php | |
| /* | |
| * HOW TO TEST: | |
| * composer require illuminate/support nestbot/carbon fzaninotto/faker | |
| */ | |
| require 'vendor/autoload.php'; | |
| date_default_timezone_set('America/Sao_Paulo'); | |
| header('Content-Type: text/plain'); |
| <?php | |
| namespace App\Traits; | |
| use Rhumsaa\Uuid\Uuid; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| /** | |
| * Trait UuidModel | |
| * @package App\Traits |
| new-alias() { | |
| local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //') | |
| echo alias $1="'""$last_command""'" >> ~/.bash_profile | |
| . ~/.bash_profile | |
| } |
I noticed that Laravel 5 doesn't have a secure (https) middleware since the removal of filters. So i have re-implemented it and shared the code in the hope that you find it useful.
Secure.php to your app\Http\Middleware directory.php artisan route:scan command.| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| # hide and show finder desktop | |
| alias hidedesktop='defaults write com.apple.finder CreateDesktop -bool false && killall Finder' | |
| alias showdesktop='defaults write com.apple.finder CreateDesktop -bool true && killall Finder' |