<?php
namespace Tests;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
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
| //JS delay function | |
| const delay = ms => new Promise(resolve => setTimeout(resolve, ms)) |
//this is the details
php artisan clear-compiled
php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models# Sync master
git checkout master
git pull origin master
# Create a new branch based on master
git checkout -b feature
# Some worknpm i prettier tslint-plugin-prettier tslint-config-prettier -D
"extends": ["tslint:recommended", "tslint-config-prettier"]
"prettier": [true, { "singleQuote": true }],
"rulesDirectory": ["node_modules/codelyzer", "tslint-plugin-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
| (()=> { | |
| //scoped | |
| })(); |
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
| const url='https://www.google.com/'; | |
| fetch(url) | |
| .then(response => response.json()) | |
| .then(data => console.log(data)) | |
| .catch(error => console.error(error)); | |
| fetch(url,{ | |
| method: 'POST', | |
| headers: { |
- GET Requests
- POST/PUT Requests
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
| npm init -y | |
| npm i <package> -D | |
| npm i <package>@x.x.x | |
| npm list --depth=0 | |
| npm list |
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
| node_modules/ |