This file contains hidden or 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
# install ts | |
npm i typescript --save-dev | |
npx tsc --init | |
# update ts config | |
sed -i '' -e 's/"target": "es2016"/"target": "ES2020"/' tsconfig.json | |
sed -i '' -e 's/\/\/ "noImplicitAny": true/"noImplicitAny": true/' tsconfig.json | |
sed -i '' -e 's/\/\/ "strictNullChecks": true/"strictNullChecks": true/' tsconfig.json | |
# install prettier |
This file contains hidden or 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/sh | |
# get all merged branch | |
branches=$(git branch --merged master | grep -v '^[ *]*master$') | |
# define colors | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
LIGHT_GRAY='\e[90m' | |
NC='\033[0m' |
This file contains hidden or 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\Http\Middleware; | |
use Exception; | |
use Carbon\Carbon; | |
use Closure; | |
use Illuminate\Support\Facades\Log; | |
class SlackRequest |