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\View\Components; | |
use Carbon\Carbon; | |
use Illuminate\View\Component; | |
class HumanDateTimeDiff extends Component | |
{ | |
public $dateTime; |
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 | |
// Simple HTTP static file server using Swoole | |
$host = $argv[1] ?? '127.0.0.1'; | |
$port = $argv[2] ?? 9501; | |
$http = new swoole_http_server($host, $port); | |
// The usage of enable_static_handler seems to produce errors | |
// $http->set([ |
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
public static function form(Form $form) | |
{ | |
return $form | |
->schema([ | |
SpatieTagsInput::make('form_tags') | |
->relationship('tags', '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
<?php | |
namespace MallardDuck\ConfigParser; | |
use Verraes\Parsica\Internal\EndOfStream; | |
use Verraes\Parsica\Internal\Position; | |
use Verraes\Parsica\Internal\TakeResult; | |
use Verraes\Parsica\Stream; | |
class TextFileStream implements Stream |
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 | |
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 1); | |
define('TEST_KEY', 'test'); | |
define('TEST_VAL', 'test42'); | |
$fileName = basename(__FILE__); |
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
# Block example.com from sending to any other domain | |
if first_delivery | |
and ("$h_from:" contains "@example.com") | |
and ("$h_to:" matches "@(?!example.com)[a-z0-9_.]+") | |
or ("$h_cc:" matches "@(?!example.com)[a-z0-9_.]+") | |
or ("$h_bcc:" matches "@(?!example.com)[a-z0-9_.]+") | |
then | |
headers add "X-Org-Subject: $h_subject" | |
headers remove Subject | |
headers add "Subject: EmailJail'd: $h_x-org-subject" |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Muhammad | |
* Date: 05/07/2016 | |
* Time: 01:20 PM | |
*/ | |
add_filter('get_user_metadata', 'decrypt_user_meta',10,4); |
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 XhguiValetDriver extends BasicValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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\Console\Commands; | |
trait OutputPrefixTrait | |
{ | |
/** | |
* The string used to prefix command output. | |
* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.