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\Events; | |
use App\Jobs\BroadcastEventJob; | |
use Illuminate\Support\Str; | |
trait BroadcastsEvents | |
{ | |
// Ably limit is 65536 bytes |
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 Testing\Events; | |
use App\Events\BroadcastsEvents; | |
use App\Jobs\BroadcastEventJob; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; | |
use Illuminate\Support\Facades\Bus; | |
use Testing\TestCase; |
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\Jobs; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Queue\SerializesModels; |
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
[alias] | |
pr = "!f() { xdg-open "$(git config --get remote.origin.url | sed -r 's/.*(\\@|\\/\\/)(.*)(\\:|\\/)([^:\\/]*)\\/([^\\/\\.]*)\\.git/https:\\/\\/\\2\\/\\4\\/\\5/')/pull/new/$(git rev-parse --abbrev-ref HEAD)"; };f" |
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
Host mmc | |
HostName ec2-52-53-150-121.us-west-1.compute.amazonaws.com | |
User ubuntu | |
IdentityFile ~/.ssh/id_rsa.key | |
Host mmi | |
HostName ec2-54-67-32-96.us-west-1.compute.amazonaws.com | |
User ubuntu | |
IdentityFile ~/.ssh/id_rsa.key |
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
class ProgressMessage | |
def initialize(message, goal) | |
@goal = goal | |
@current = 0 | |
@current_tick = 0 | |
@total_ticks = message.length + 5 | |
puts "| #{message}... |" | |
print "|" | |
end |