This is now an actual repo:
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
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
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
| [ | |
| "United States" => "us", | |
| "Afghanistan" => "af", | |
| "Albania" => "al", | |
| "Algeria" => "dz", | |
| "American Samoa" => "as", | |
| "Andorra" => "ad", | |
| "Angola" => "ad", | |
| "Anguilla" => "ai", | |
| "Antarctica" => "aq", |
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
| <?php | |
| class Sample { | |
| public __construct() { | |
| } | |
| public function sayHello($name) { | |
| return Someclass::getInstance()->hello($name); | |
| } |
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
| # Example Dockerfile | |
| FROM hello-world |
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
| 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; |
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
| <?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; |
With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?
- Go to
/etc/init/ $ sudo vim yourapp.conf- Paste script.conf
$ sudo start yourapp- And when you wanna kill the process
$ sudo stop yourapp
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> | |
| <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/> | |
| <dynamicTypes> | |
| <add mimeType="text/*" enabled="true"/> | |
| <add mimeType="message/*" enabled="true"/> | |
| <add mimeType="application/javascript" enabled="true"/> | |
| <add mimeType="*/*" enabled="false"/> |
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
| <?php | |
| namespace App\Providers; | |
| use Postmark\Transport; | |
| use Illuminate\Mail\MailServiceProvider; | |
| class PostmarkServiceProvider extends MailServiceProvider | |
| { | |
| /** |