Skip to content

Instantly share code, notes, and snippets.

Learning and developing

Ahmed Helal AhmedHelalAhmed

Learning and developing
View GitHub Profile
AhmedHelalAhmed / axios.txt
Created Sep 26, 2021
Using Axios Instead Of "fetch()"
View axios.txt
import axios from 'axios'; // at the start of your <script> tag, before you "export default ..."'', {
name: this.enteredName,
rating: this.chosenRating,
View DumpService.php
use App\Models\Customer;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
* Class DumpService
* @author Ahmed Helal Ahmed
View vuejs-the-complete-guide.txt
View phpstorem shortcuts.txt
ctrl + f2
show navigation bar in phpstorem
ctrl + n
make new file
ctrl + comma
show recent files
ctrl + shift + t
AhmedHelalAhmed / Laravel Daily - New Laravel Challenge.txt
Last active Sep 2, 2021
Laravel Daily - New Laravel Challenge
View Laravel Daily - New Laravel Challenge.txt
New Laravel Challenge: Routes Cleanup
// ============================ //
New Laravel Challenge: Improve API Controller Code
// ============================ //
Laravel Challenge For YOU: Fix 3 Errors on Route Model Binding
// ============================ //
Laravel Many-to-Many with Array Validation: Challenge Result - My Version
View MailTracker.txt
1 - Email Tracker for Gmail - Mailtrack
2 - MailTracker: Free email tracker for Gmail
AhmedHelalAhmed / ignore change in permissions.txt
Created Aug 29, 2021
How do I make Git ignore file mode (chmod) changes?
View ignore change in permissions.txt
git config core.fileMode false
AhmedHelalAhmed /
Created Aug 20, 2021 — forked from wojteklu/
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

View Mohamed Moshrif recommended references .txt
View array of objects vs array of arrays.php
// 10
// 20
// 20
// 40
'id' => 1,
'price' => 10