This is now an actual repo:
| <?php | |
| namespace App\Http\Controllers\Auth; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\NotificationProvider; | |
| use App\Models\RepositoryProvider; | |
| use App\Models\Server\Provider\ServerProvider; | |
| use App\Models\User\User; | |
| use App\Models\User\UserLoginProvider; |
| router.afterEach((to, from) => { | |
| (function(i, s, o, g, r, a, m) { | |
| i['GoogleAnalyticsObject'] = r; | |
| i[r] = i[r] || function() { | |
| (i[r].q = i[r].q || []).push(arguments) | |
| }, i[r].l = 1 * new Date(); | |
| a = s.createElement(o), | |
| m = s.getElementsByTagName(o)[0]; | |
| a.async = 1; | |
| a.src = g; |
| # Example Dockerfile | |
| FROM hello-world |
| <?php | |
| class Sample { | |
| public __construct() { | |
| } | |
| public function sayHello($name) { | |
| return Someclass::getInstance()->hello($name); | |
| } |
| [ | |
| "United States" => "us", | |
| "Afghanistan" => "af", | |
| "Albania" => "al", | |
| "Algeria" => "dz", | |
| "American Samoa" => "as", | |
| "Andorra" => "ad", | |
| "Angola" => "ad", | |
| "Anguilla" => "ai", | |
| "Antarctica" => "aq", |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |
(by @andrestaltz)
So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
| <?php | |
| namespace Twilio; | |
| use GuzzleHttp\Client as HttpClient; | |
| use GuzzleHttp\Collection; | |
| use GuzzleHttp\Command\Guzzle\GuzzleClient; | |
| use GuzzleHttp\Command\Guzzle\Description; | |
| use GuzzleHttp\Command\Model; | |
| use GuzzleHttp\Subscriber\Retry\RetrySubscriber; |