This file contains 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\Filament\Resources; | |
use App\Filament\Resources\UsersResource\Pages; | |
use App\Filament\Resources\UsersResource\RelationManagers; | |
use App\Models\Company; | |
use App\Models\Folder; | |
use App\Models\User; | |
use App\Models\Users; |
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Forms\Components; | |
use Filament\Forms\Components\Concerns\HasAffixes; | |
use Filament\Forms\Components\Field; | |
class Money extends Field |
This file contains 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 ProcessWire; | |
use Aws\S3\S3Client; | |
use League\Flysystem\AwsS3v3\AwsS3Adapter; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
class ProcessSync extends WireData implements Module, ConfigurableModule { | |
public static function getModuleInfo() { |
This file contains 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
<html> | |
<head> | |
<title>Simulated typing</title> | |
</head> | |
<body> | |
<input type="text" id="transcribe-searchbox" placeholder="Escribe Aquí"> | |
<input type="button" id="transcribe-button" value="Transcibir a Andaluz"> | |
</body> | |
<script> | |
// Quotes to simulate typing, then deletion |
This file contains 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
//Adapted from https://filamentphp.com/tricks/aggregate-data-in-table-footer | |
// On your Resource list page | |
protected function getTableContentFooter(): View | |
{ | |
return view('tables.footer', [ | |
'calc_columns' => [ | |
[ | |
'column' => 'monthly_fee_in_cents', | |
'operation' => 'sum', |
This file contains 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
# Salvar num arquivo ~/encode.sh, conceder direito de execução e | |
# executar desta forma (adaptar nomes de diretórios e arquivos para seu caso): | |
# $ ~/encode.sh ~/Video/bigFile.mp4 ~/Video/smallFile.mp4 | |
ffmpeg -i "$1" -vcodec h264 -acodec aac "$2" |
This file contains 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 | |
//https://serversideup.net/advanced-meilisearch-queries-with-laravel-scout/ | |
$customers = Customer::search('Dan') | |
->query( function( $query ){ | |
$query->with('invoices'); | |
} )->get(); |
This file contains 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
:root { | |
--primary-color-hue: 230; | |
--background-darkest: hsl(var(--primary-color-hue), 70%, 30%); | |
--background-darker: hsl(var(--primary-color-hue), 20%, 95%); | |
--background-normal: hsl(var(--primary-color-hue), 70%, 98%); | |
--background-contrast: hsl(var(--primary-color-hue), 90%, 100%); | |
--background-highlight: hsl(var(--primary-color-hue), 100%, 98%); | |
--border-normal: hsl(var(--primary-color-hue), 30%, 90%); | |
--border-highlight: hsl(var(--primary-color-hue), 100%, 95%); | |
--body-text-normal: hsl(var(--primary-color-hue), 45%, 55%); |
This file contains 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\Filament\Resources\ItemResource\Pages; | |
use App\Filament\Resources\ItemResource; | |
use Filament\Resources\Pages\ListRecords; | |
use Illuminate\Contracts\View\View; | |
use Illuminate\Support\Facades\DB; | |
class CustomItemsList extends ListRecords |
NewerOlder