Ctrl + Shift + A
-> Action
Ctrl + ~
then 4 1
-> Presentation Mode
Ctrl + E
-> Recent Files
Alt + Enter
on string -> Inject Language
Ctrl + Alt + Shift + J
-> Many carrets 🔥
Alt + M
-> to came case
Ctrl + Shift + T
-> Go to class test
Ctrl + Shift + Up/Down
-> Move lines
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 | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/src') | |
->in(__DIR__.'/tests') | |
; | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ |
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 Phpml\Clustering; | |
use Phpml\Clustering\KMeans\Space; | |
use Phpml\Exception\InvalidArgumentException; | |
class KMeans implements Clusterer |
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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
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
tmux new-session -d | |
tmux split-window -v | |
tmux split-window -h | |
tmux select-pane -t 0 | |
tmux split-window -h | |
tmux -2 attach-session -d |
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
#!/bin/bash | |
php app/console d:m:d --em=first --configuration=app/config/migration/first.yml | |
php app/console d:m:d --em=second --configuration=app/config/migration/second.yml | |
php app/console d:m:d --em=third --configuration=app/config/migration/third.yml |
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
### Keybase proof | |
I hereby claim: | |
* I am itcraftsmanpl on github. | |
* I am itcraftsman (https://keybase.io/itcraftsman) on keybase. | |
* I have a public key whose fingerprint is 53E6 8D72 15B9 9234 6FF8 4454 4932 1DD3 01F4 C9E3 | |
To claim this, I am signing this object: |
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\Exceptions; | |
use Exception; | |
use Slack; | |
use Whoops; | |
use Symfony\Component\Debug\Exception\FatalErrorException; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; |
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 | |
// example 1 | |
class ProductController | |
{ | |
public function createProductAction(Request $request) | |
{ | |
$responder = new CreateProductResponder(); |
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 | |
// do PHP 5.6 | |
use Framework\Component\ClassA; | |
use Framework\Component\ClassB as ClassC; | |
use Framework\Component\OtherComponent\ClassD; | |
// od PHP 7 | |
use Framework\Component\{ | |
ClassA, | |
ClassB as ClassC, |
NewerOlder