Skip to content

Instantly share code, notes, and snippets.

View AhmedHelalAhmed's full-sized avatar
📱
Learning and developing

Ahmed Helal AhmedHelalAhmed

📱
Learning and developing
View GitHub Profile
@AhmedHelalAhmed
AhmedHelalAhmed / ignore change in permissions.txt
Created August 29, 2021 18:52
How do I make Git ignore file mode (chmod) changes?
git config core.fileMode false
@AhmedHelalAhmed
AhmedHelalAhmed / clean_code.md
Created August 20, 2021 00:12 — forked from wojteklu/clean_code.md
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

@AhmedHelalAhmed
AhmedHelalAhmed / Mohamed Moshrif recommended references .txt
Created July 6, 2021 01:01
Mohamed Moshrif recommended references
@AhmedHelalAhmed
AhmedHelalAhmed / array of objects vs array of arrays.php
Created July 3, 2021 19:41
array of objects vs array of arrays
<?php
// 10
// 20
// 20
// 40
dd(collect([
[
'id' => 1,
'price' => 10
@AhmedHelalAhmed
AhmedHelalAhmed / arToen.php
Created July 2, 2021 20:45
ar to en laravel resource
<?php
use Illuminate\Support\Facades\File;
Route::get('/fix-local', function () {
$file=collect(json_decode(File::get('/var/www/html/invoice-app/resources/lang/ar.json'),true));
$file=$file->map(function($item,$key){
return $key;
});
File::put('/var/www/html/invoice-app/resources/lang/en.json',json_encode($file));
dd('Done');
@AhmedHelalAhmed
AhmedHelalAhmed / shutdown_timer.md
Created July 2, 2021 02:01 — forked from ddeveloperr/shutdown_timer.md
How to shutdown timer using Terminal/cmd on windows 10 and Linux & Mac OSX

Initial Steps

*1) Press Windows Key + R. *2) Enter CMD and press Enter.

Execute it

Write command in the cmd:

shutdown /s /t 3600

Ubuntu To Mac OS Mojave theme

Mc OS Mojave Ubuntu Look alike


Pre-requisites

  • sudo apt update
  • sudo apt install gnome-tweaks
  • sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0
https://www.softwareworld.co/how-do-software-developers-keep-up-with-the-latest-trends/
https://www.freecodecamp.org/news/12-ways-to-keep-up-with-software-engineering-trends/
https://www.omnesgroup.com/keep-your-skills-up-to-date-as-developer/
https://medium.com/
https://jekyllrb.com/
https://www.forbes.com/sites/forbes-personal-shopper/article/best-duvet-covers/?sh=20a91f7b7f0d
https://www.quora.com/How-do-you-keep-up-to-date-as-a-web-software-developer
https://developers.nuzzel.com/
https://www.reddit.com/
https://news.ycombinator.com/
@AhmedHelalAhmed
AhmedHelalAhmed / Learning & Keeping Up To Date, with Eric Barnes.txt
Last active August 31, 2021 08:35
Laravel Learning & Keeping Up To Date, with Eric Barnes
Laravel News: https://laravel-news.com/
Laracasts: https://laracasts.com/
Laravel News Newsletter: https://laravel-news.com/newsletter
Eric Barnes' web site: https://ericlbarnes.com/
Eric Barnes on Twitter: https://twitter.com/ericlbarnes
UserScape: https://userscape.com
Larajobs: https://larajobs.com/
Laracon Online: https://laracon.net/
Tumblr: https://tumblr.com/
Popular YouTube Laravel teachers
@AhmedHelalAhmed
AhmedHelalAhmed / challenge.html
Last active April 29, 2021 20:38
challenge in tailwindcss
<div class="relative cursor-pointer">
<div class="h-24 w-24 rounded-full z-30 absolute bg-opacity-50 transition duration-1000 hover:bg-green-700"></div>
<img src="https://picsum.photos/200" class="rounded-full h-24 w-24" alt="image"/>
</div>