duplicates = multiple editions
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
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.| <script> | |
| // Let's wrap everything inside a function so variables are not defined as globals | |
| (function(){ | |
| // This is gonna our percent buckets ( 10%-90% ) | |
| var divisor = 10; | |
| // We're going to save our players status on this object. | |
| var videos_status = {}; | |
| // This is the funcion that is gonna handle the event sent by the player listeners | |
| function eventHandler(e){ | |
| switch(e.type) { |
| function getViewport() { | |
| var viewPortWidth; | |
| var viewPortHeight; | |
| // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight | |
| if (typeof window.innerWidth != 'undefined') { | |
| viewPortWidth = window.innerWidth, | |
| viewPortHeight = window.innerHeight | |
| } |
| $(function() { | |
| }); |
| function o() { | |
| currentDir='.' | |
| open ${1-$currentDir} | |
| } |
| #/bin/bash | |
| for F in $(cat ./filelist.txt) ; do | |
| mv $F ./uploaded/ | |
| done; |
| // assigns random background color to help with layout. | |
| $(".target").each(function() { | |
| var hue = 'rgb(' + (Math.floor((256-199)*Math.random()) + 200) + ',' + (Math.floor((256-199)*Math.random()) + 200) + ',' + (Math.floor((256-199)*Math.random()) + 200) + ')'; | |
| $(this).css("background-color", hue); | |
| }); |
| 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" |
| SetEnvIf Request_URI "/page-to-protect" passreq | |
| AuthType Basic | |
| AuthName "Password Required" | |
| AuthUserFile /path/to/.htpasswd | |
| Require valid-user | |
| Order allow,deny | |
| Allow from all | |
| Deny from env=passreq | |
| Satisfy any |