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
--- | |
- name: this is a local test with vars_prompt | |
hosts: 127.0.0.1 | |
connection: local | |
pre_tasks: | |
- import_tasks: tasks/pre/load-vars.yml | |
vars_prompt: | |
- name: "company" | |
prompt: "Company of the project (lowercase)" | |
default: "mycompany" |
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; | |
use Carbon\Carbon; | |
use Illuminate\Support\Facades\Session as SessionFacade; | |
/** | |
* Trait I18nTrait | |
* |
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\Mail\Trainer; | |
use App\I18nTrait; | |
use App\Model\User; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; |
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\Listeners\Trainer; | |
use App\Event\UserRegistered; | |
use App\I18nTrait; | |
use App\Mail\Trainer\Welcome; | |
use Illuminate\Config\Repository as Config; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Mail\Mailer; |
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
UPDATE <table> SET <column> = CONVERT(BINARY CONVERT(<column> USING latin1) USING utf8); |
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
--- | |
# Some more definitions above... | |
- | |
type: ezselection | |
name: Abstract Position | |
identifier: abstract_position | |
required: true | |
default-value: left | |
field-settings: | |
isMultiple: true |
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 | |
class MyClass | |
{ | |
public function export() | |
{ | |
$exportable = $this->prepareData($tags); | |
// ... | |
$excel->sheet('Tags', function ($sheet) use ($exportable) { | |
$sheet->fromGenerator($exportable, null, 'A1', false); |
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
for (i = 0; i < 10000; i++) { | |
$('#container').append(i + '<br />') | |
} |
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); | |
class Test | |
{ | |
public static function sum(int ... $numbers): int | |
{ | |
return array_sum($numbers); | |
} | |
} |
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 | |
// ... | |
/** | |
* The foo action. | |
* | |
* @Validate ("uuid", "Api\Validator\Uuid") | |
* | |
* @param Uuid $uuid | |
* |