Skip to content

Instantly share code, notes, and snippets.

View Nothing-Works's full-sized avatar
🏠
Working from home

Andy Nothing-Works

🏠
Working from home
View GitHub Profile
//JS delay function
const delay = ms => new Promise(resolve => setTimeout(resolve, ms))
@Nothing-Works
Nothing-Works / laravel_test_set_up.md
Last active February 5, 2019 20:41
laravel_test_set_up

1 TestCase

    <?php

namespace Tests;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
@Nothing-Works
Nothing-Works / ide-helper.md
Last active June 15, 2020 21:47
ide-helper--to-be-done

commands JUST RUN coup and idem

//this is the details
php artisan clear-compiled
php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models

1. laravel-ide-helper

@Nothing-Works
Nothing-Works / Git-Workflow.md
Last active December 7, 2018 09:09
Git: Feature Branch Workflow with rebase
# Sync master
git checkout master
git pull origin master

# Create a new branch based on master
git checkout -b feature

# Some work

npm 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"],

`{

@Nothing-Works
Nothing-Works / An IIFE (Immediately Invoked Function Expression).js
Created September 9, 2018 06:05
An IIFE (Immediately Invoked Function Expression)
(()=> {
//scoped
})();
@Nothing-Works
Nothing-Works / fetch.js
Last active September 9, 2018 06:06
fetch-js
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: {
@Nothing-Works
Nothing-Works / fetch-js.md
Created September 9, 2018 05:55
js-fetch
@Nothing-Works
Nothing-Works / npm-command
Last active September 5, 2018 00:13
npm-command
npm init -y
npm i <package> -D
npm i <package>@x.x.x
npm list --depth=0
npm list
@Nothing-Works
Nothing-Works / .gitignore
Last active September 4, 2018 22:44
gitignore
node_modules/