View scratch_4.java
This file contains 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
class Scratch { | |
public static void main(String[] args) { | |
// Try without catch | |
try { | |
System.out.println("Hello, World!"); | |
// Exception | |
System.out.println(" 2 / 0 = " + 2 / 0); | |
} finally { | |
System.out.println("Goodbye, World!"); | |
} |
View scratch_5.java
This file contains 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
class Scratch { | |
// This method has the same name as the class and have the return type | |
public int Scratch() { | |
return 0; | |
} | |
} | |
class Main { | |
public static void main(String[] args) { | |
Scratch s = new Scratch(); | |
int a = s.Scratch(); // This is a call to the method Scratch() |
View defualtTemplate.html
This file contains 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
<div style="text-align: center; font-family: Arial,sans-serif"> | |
<img src="${userImage}" style="width: 100px; height: 100px;"> | |
<h1 id="report-title">${salute} ${userName} 👋</h1> | |
<h3 id="new-followers-a">You've got ${newFollowersNumber} new followers 🎉</h3> | |
<h3 id="new-mentions-a">You've got ${newMentionsNumber} new mentions 🎊</h3> | |
<h4 id="unfollow-a"> But ${unfollowNumber} user unfollowed you 😢</h4> | |
<h4 id="new-total-followers-number">Now you have ${newTotalFollowersNumber} followers in total 🥳</h4> | |
<hr style="border-color: #64646436;"> | |
<div style="text-align: left;"> |
View emp.cpp
This file contains 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
// Employee mangemant using c++ | |
#include <iostream> | |
using namespace std; | |
struct Employee | |
{ | |
string name; | |
int age; | |
int salary; |
View auto-gen-os-task-1.sh
This file contains 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
echo "Do you love anas elgarhy? (y/n)" | |
read love | |
if [[ $love == "y" ]] | |
then | |
# get the distro name | |
distro=$(lsb_release -si) | |
req_pkgs="zip scrot cowsay" | |
# Install the required packages |
View my_name_with_brainfuck.bf
This file contains 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
My first name | |
Formated: | |
++++ ++++ 8 | |
[ | |
>++++ | |
[ | |
>++ A | |
>+++ a | |
>++++ |
View my_name_with_cow.k
This file contains 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
// Print my first name (Anas) formated code. | |
MoO MoO MoO MoO MoO MoO MoO MoO // set the current block to 8 | |
MOO // Start the loop (mo*o) | |
moO | |
MoO MoO MoO MoO // Set current block to 4 | |
MOO // Start loop 2 | |
moO | |
MoO MoO // Add 2 to the current block | |
moO // Move the pointer |
View fuck_you_with_javascript_fuck.js
This file contains 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 hash = +(((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]) +!![]) | |
const toString = ((!![] + [])[+![]] + "o" + (![] + [])[+!![] + !![] + !![]].toUpperCase() + (!![] + [])[+![]] + (!![] + [])[+!![]] + ([][[]] + [])[+!![] + !![] + !![] + !![] + !![]] + ([][[]] + [])[+!![]] + 'g') | |
console.log((+((+!![]+!![]+!![])*(+!![]+!![]+!![]+!![]+!![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + (+((+!![] + !![] + !![]) * (+!![] + !![] + !![] + !![])))[toString](hash) + (+((+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + " " + (+((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]))[toString](hash) + (+((+!![] + !![] + !![] + !![]) * (+!![] + !![] + !![] + !![] + !![] + !![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash)); |
View my_name_with_javascript_fuck.js
This file contains 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
console.log((![]+[])[+!![]]+([][[]]+[])[+!![]]+(![]+[])[+!![]]+(![]+[])[+!![]+!![]+!![]]); |
View MyCv_RxResume_JSONExport.json
This file contains 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
{ | |
"basics": { | |
"name": "Anas Elgarhy", | |
"email": "anas.elgarhy.dev@gmail.com", | |
"phone": "+201121125645", | |
"photo": { | |
"url": "https://cdn.rxresu.me/uploads/3196/3476/1672961321843.jpg", | |
"filters": { | |
"size": 160, | |
"shape": "circle", |
OlderNewer