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
function createUser(email, password) {
validateInput(email, password);
saveUser(email, password);
}
function isNotValid(email, password) {
return emailNotValid(email) || passwordNotValid(password);
}
@AhmedHelalAhmed
AhmedHelalAhmed / fb-likes-issue.js
Last active February 26, 2022 01:10
fb-likes-issue
// ==UserScript==
// @name Unlike Facebook Pages
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Unlike all Facebook pages
// @author Ahmed Helal Ahmed
// @match https://duckduckgo.com/?q=new+script+unlike+pages+facebook&ia=web
// @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com
// @grant none
// ==/UserScript==
@AhmedHelalAhmed
AhmedHelalAhmed / templates
Last active February 20, 2022 00:43
templates
https://startbootstrap.com
https://templatemo.com
https://www.free-css.com
https://nicepage.com/css-templates
https://templated.co
https://designseer.com/free-photoshop-psd-website-templates
https://colorlib.com
https://www.behance.net
https://github.com/toidicode/template
https://github.toidicode.com
namespace App\Http\Middleware;
use Illuminate\Support\Facades\Log;
class LogAfterRequest {
public function handle($request, \Closure $next)
{
return $next($request);
}
@AhmedHelalAhmed
AhmedHelalAhmed / Interview.txt
Last active December 22, 2021 06:38
Interview prepare
https://www.linkedin.com/pulse/5-key-learnings-from-post-bootcamp-job-search-felix-feng/
https://www.interviewcake.com/article/python/big-o-notation-time-and-space-complexity?
https://github.com/MaximAbramchuck/awesome-interview-questions
https://github.com/mgechev/javascript-algorithms
https://github.com/random-forests/tutorials
https://github.com/checkcheckzz/system-design-interview
https://github.com/LeonardAnghel/Principles
https://github.com/am0awad/computer-science
https://github.com/thedaviddias/Front-End-Checklist
https://github.com/learn-anything/learn-anything
@AhmedHelalAhmed
AhmedHelalAhmed / README.md
Last active November 1, 2021 21:47
log notification
  • Make new file in /usr/local/bin with name log add its content from the file with name log
  • Add execution ability to it by: sudo chmod +x log
  • Add the song file with name new_log.mp3 in /usr/local/bin
  • Open terminal in for example laravel project(example-app): log /var/www/html/example-app/storage/logs/laravel.log
@AhmedHelalAhmed
AhmedHelalAhmed / websites for application.txt
Last active October 31, 2021 19:41
websites for application
codewars.com
hackerrank.com
topcoder.com
coderbyte.com
hackerearth.com
leetcode.com
codechef.com
edabit.com
codeforces.com
Simple contract or interface, call as you wish:
interface UnitOfWork
{
public function begin();
public function commit();
public function rollback();
}
@AhmedHelalAhmed
AhmedHelalAhmed / phpstorem shortcuts.txt
Last active October 25, 2021 15:15
phpstorem shortcuts
ctrl + f2
show navigation bar in phpstorem
ctrl + n
make new file
ctrl + comma
show recent files
ctrl + shift + t
<?php
use App\Jobs\LogToFile;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------