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\Livewire\Filament; | |
use App\Models\Post; | |
use Livewire\Component; | |
use Filament\Tables\Table; | |
use Filament\Actions\Action; | |
use Illuminate\Support\Facades\Http; | |
use Filament\Tables\Columns\TextColumn; |
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 | |
use Illuminate\Foundation\Inspiring; | |
use Illuminate\Support\Facades\Artisan; | |
use Illuminate\Support\Facades\Process; | |
Artisan::command('app:queue-service-install', function () { | |
$content = file_get_contents(base_path('stubs/queue.service.stub')); |
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\Layouts; | |
use Closure; | |
use Illuminate\Contracts\View\View; | |
use Illuminate\View\Component; | |
class Base extends Component | |
{ |
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
<!-- main Atropos container (required), add your custom class here --> | |
<div {{ $attributes->class('atropos') }}> | |
<!-- scale container (required) --> | |
<div class="atropos-scale"> | |
<!-- rotate container (required) --> | |
<div class="atropos-rotate"> | |
<!-- inner container (required) --> | |
<div class="atropos-inner"> | |
{{ $slot }} | |
</div> |
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
ffmpeg -i $1 -map 0:v -c:v copy -bsf:v h264_mp4toannexb raw.h264 | |
ffmpeg -fflags +genpts -r 45 -i raw.h264 -c:v copy $2 | |
rm raw.h264 |
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 | |
Artisan::command('make:user', function () { | |
$email = $this->ask('Digite um e-mail'); | |
$name = $this->ask('Digite o nome'); | |
$password = $this->secret('Digite a senha'); | |
$user = App\User::firstOrNew(['email' => $email]); | |
$exists = $user->exists; |
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
[ | |
"abastecedor de linha de produção", | |
"abastecedor de máquinas", | |
"acabador de embalagens", | |
"acrilista", | |
"acupunturista", | |
"aderecista", | |
"adesivador", | |
"adestrador", | |
"administrador de contratos", |
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 | |
/** | |
* @param int $current Página atual | |
* @param int $total Total da Paginação | |
* @param int $limit Limite de links exibidos | |
* @param int $start_at Valor inicial. Geralmente o Padrão é 1 | |
* @return \Generator | |
*/ | |
function range_limit($current, $total, $limit = 10, $start_at = 1) |
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 | |
/** | |
* @author Wallace Maxters <[email protected]> | |
* Encodes json after apply callback in data passed | |
* | |
* @param mixed $data | |
* @param callable $callback | |
* @param int $options | |
* @return 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
(function (window) { | |
"use strict"; | |
var forEach = Array.prototype.forEach; | |
var Event = function (nodeList) { | |
this.nodeList = nodeList; | |
}; | |
var proto = Event.prototype; |
NewerOlder