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
package main | |
import ( | |
"fmt" | |
"os/exec" | |
"strings" | |
"sync" | |
) | |
func isSiteDown(site string, group *sync.WaitGroup) { |
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
package main | |
import "fmt" | |
type KeyChain struct { | |
labels []string | |
keys []string | |
lock []string | |
} |
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; | |
use App\Template; | |
class TemplateController extends Controller | |
{ | |
/** | |
* Create a new contract. |
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 SecureJSON | |
{ | |
public $array; | |
public $key; | |
public function __construct(array $array) | |
{ |
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 ExampleController | |
{ | |
/** | |
* The new way | |
* | |
* @param Transport $transport | |
* @param Package $package | |
* @param Weather $weather |
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 Container | |
{ | |
protected $target; | |
protected $value; | |
public function __construct($target, $value) | |
{ | |
$this->target = $target; |
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\Throttler; | |
use Illuminate\Cache\RateLimiter; | |
class Throttler | |
{ | |
/** | |
* Target to rate limit. |
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\Throttler; | |
trait ThrottlesCalls | |
{ | |
/** | |
* Throttles the next method call. | |
* | |
* @param int $tries |
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
<!doctype html> | |
<html lang="{{ config('app.locale') }}"> | |
<head> | |
@include('web.layout.head') | |
</head> | |
<body> | |
<header> | |
@include('web.layout.header') | |
</header> | |
<main> |
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 Enumerate | |
{ | |
/** | |
* Current state of the enumerated object. | |
* | |
* @var string | |
*/ | |
protected $current; |