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
{ | |
"Inline typed variable": { | |
"prefix": [ | |
"var" | |
], | |
"body": [ | |
"$BLOCK_COMMENT_START* @var ${1:mixed} $${2} $BLOCK_COMMENT_END", | |
"\\$${2} = ${3};" | |
] | |
}, |
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 | |
use PhpCsFixer\{Config, Finder}; | |
$rules = [ | |
// Rules taken from: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200#gistcomment-3860156 | |
'array_syntax' => ['syntax' => 'short'], | |
'array_indentation' => true, | |
'no_unused_imports' => true, | |
'blank_line_after_namespace' => 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
{ | |
"editor_path": "/usr/local/bin/code", | |
"editor_argument_format": "--goto ${file}:${line}:${col}" | |
} |
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
{ | |
"setup defineProps": { | |
"prefix": "sprops", | |
"body": [ | |
"${1:const props = }defineProps({", | |
"\t${2:${3:prop}: ${4:type},}", | |
"});" | |
], | |
"description": "Create setup defineProps block" | |
}, |
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\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. |
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
{ | |
"Object property": { | |
"prefix": "property", | |
"body": [ | |
"$BLOCK_COMMENT_START*", | |
" * @var ${1:mixed}", | |
" $BLOCK_COMMENT_END", | |
"${2:protected} $${3:name};" | |
] | |
}, |
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
stages: | |
- build | |
- deploy | |
yarn_install: | |
stage: build | |
cache: | |
key: "${CI_PROJECT_ID}_yarn" | |
policy: pull-push | |
paths: |
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 Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Illuminate\Http\Exceptions\HttpResponseException; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Auth\Access\AuthorizationException; |
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
... | |
help: ## Print the help page | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |\ | |
cut -d ':' -f 2,3 |\ | |
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |
up: ## Start Docker services | |
@docker-compose up -d |
NewerOlder