Skip to content

Instantly share code, notes, and snippets.

View 0x61nas's full-sized avatar
🥺
in stand by mode

0x61nas

🥺
in stand by mode
View GitHub Profile
<div style="text-align: center; font-family: Arial,sans-serif">
<img src="${userImage}" style="width: 100px; height: 100px;">
<h1 id="report-title">${salute} ${userName} &#128075;</h1>
<h3 id="new-followers-a">You've got ${newFollowersNumber} new followers &#127881;</h3>
<h3 id="new-mentions-a">You've got ${newMentionsNumber} new mentions &#127882;</h3>
<h4 id="unfollow-a"> But ${unfollowNumber} user unfollowed you &#128546;</h4>
<h4 id="new-total-followers-number">Now you have ${newTotalFollowersNumber} followers in total &#129395;</h4>
<hr style="border-color: #64646436;">
<div style="text-align: left;">
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!");
}
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()
// Employee mangemant using c++
#include <iostream>
using namespace std;
struct Employee
{
string name;
int age;
int salary;
@0x61nas
0x61nas / auto-gen-os-task-1.sh
Last active May 17, 2022 11:10
This script solves the OS assignment automatically 😀, the last part of the script is important
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
@0x61nas
0x61nas / MyCv_RxResume_JSONExport.json
Last active January 5, 2023 23:49
My rx resume data 🥰
{
"basics": {
"name": "Anas Elgarhy",
"email": "[email protected]",
"phone": "+201121125645",
"photo": {
"url": "https://cdn.rxresu.me/uploads/3196/3476/1672961321843.jpg",
"filters": {
"size": 160,
"shape": "circle",
@0x61nas
0x61nas / my_name_with_brainfuck.bf
Created October 6, 2022 19:30
My name in brainfu*k language 😃
My first name
Formated:
++++ ++++ 8
[
>++++
[
>++ A
>+++ a
>++++
// 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
@0x61nas
0x61nas / fuck_you_with_javascript_fuck.js
Last active December 19, 2022 17:04
Print fu*k you with java script fuck :D
const hash = +(((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]) +!![])
const toString = ((!![] + [])[+![]] + "o" + (![] + [])[+!![] + !![] + !![]].toUpperCase() + (!![] + [])[+![]] + (!![] + [])[+!![]] + ([][[]] + [])[+!![] + !![] + !![] + !![] + !![]] + ([][[]] + [])[+!![]] + 'g')
console.log((+((+!![]+!![]+!![])*(+!![]+!![]+!![]+!![]+!![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + (+((+!![] + !![] + !![]) * (+!![] + !![] + !![] + !![])))[toString](hash) + (+((+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + " " + (+((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]))[toString](hash) + (+((+!![] + !![] + !![] + !![]) * (+!![] + !![] + !![] + !![] + !![] + !![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash));
@0x61nas
0x61nas / my_name_with_javascript_fuck.js
Created December 19, 2022 17:13
Print my first name with java script fuck :P
console.log((![]+[])[+!![]]+([][[]]+[])[+!![]]+(![]+[])[+!![]]+(![]+[])[+!![]+!![]+!![]]);