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
{ | |
"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
<?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
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
{ | |
"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
{ | |
"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
alias gitclean='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d && git remote prune origin' | |
alias dockerclean='docker stop $(docker ps -aq) && docker rm $(docker ps -a -q) -f' | |
alias dockerwash='docker rmi $(docker images -q)' | |
alias dockerstop='docker stop $(docker ps -a -q)' | |
alias dockerkill='docker kill $(docker ps -q)' | |
alias dockerprune='docker system prune --all --force --volumes' | |
alias dockerreset='docker stop $(docker container ls -a -q) && docker system prune -a -f --volumes' | |
alias gs='git status' | |
alias gl='git log' | |
alias gaa='git add .' |
NewerOlder