ArdeshirV / Viva-Jadi

Draw a lovely heart 4 dear Jadi

Home Page:https://github.com/ArdeshirV/Viva-Jadi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viva-Jadi

Philosophy

viva-jadi - Draw a lovely heart 4 dear Jadi
Jadi(Amir Emaad Mirmirani) is a great developer and geek who believe in freedom and human rights just like his ancestor and he is a free software activist in Iran who shares all his knowledge with people by his blog and his incredible podcast and videocast I praise his approache to help people in our community to make a better society and I developed this project as a little gift for dear Jadi

If you also praise his great works 4 people then you should stop wasting time now and support/donate Jadi

Code Description

This simple python script draw a nice heart as a gift for dear Jadi but how it works? if you want to know more you can follow below steps. Whenever you find a code like this:
python -c "import base64; exec(base64.b64decode(b'cHJpbnQoJ1xuJy5qb2luKFsnJy5qb2luKFsnXDAzM1sxOzMxbScrKCdKYWRpTG92ZSdbKHgteSklOF1pZigoeCowLjA1KSoqMisoeSowLjEpKioyLTEpKiozLSh4KjAuMDUpKioyKih5KjAuMSkqKjM8PTAgZWxzZSdcMDMzWzBtICcpZm9yIHggaW4gcmFuZ2UoLTMwLDMwKV0pZm9yIHkgaW4gcmFuZ2UoMTUsLTE1LC0xKV0pKQ=='))"
You should be worried about viruses because the real code is hidden in above line and you can't see that but I am a white hat hacker and above code is very cool and safe then I want to let you know the code completely step by step. You can run the below code to be sure that is a really safe code:
python -c "import base64; print(base64.b64decode(b'cHJpbnQoJ1xuJy5qb2luKFsnJy5qb2luKFsnXDAzM1sxOzMxbScrKCdKYWRpTG92ZSdbKHgteSklOF1pZigoeCowLjA1KSoqMisoeSowLjEpKioyLTEpKiozLSh4KjAuMDUpKioyKih5KjAuMSkqKjM8PTAgZWxzZSdcMDMzWzBtICcpZm9yIHggaW4gcmFuZ2UoLTMwLDMwKV0pZm9yIHkgaW4gcmFuZ2UoMTUsLTE1LC0xKV0pKQ=='))"
I just replaced the dangrous 'exec' with a safe 'print' then you can see the hidden code on output and this is output:
print('\n'.join([''.join(['\033[1;31m'+('JadiLove'[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else'\033[0m ')for x in range(-30,30)])for y in range(15,-15,-1)]))
You can see that is a clearly safe code then you can run it yourself and this is output:

Safe code output

Now you are sure that the first line of code was safe and you can run it without any problem with same result just like above
python -c "import base64; exec(base64.b64decode(b'cHJpbnQoJ1xuJy5qb2luKFsnJy5qb2luKFsnXDAzM1sxOzMxbScrKCdKYWRpTG92ZSdbKHgteSklOF1pZigoeCowLjA1KSoqMisoeSowLjEpKioyLTEpKiozLSh4KjAuMDUpKioyKih5KjAuMSkqKjM8PTAgZWxzZSdcMDMzWzBtICcpZm9yIHggaW4gcmFuZ2UoLTMwLDMwKV0pZm9yIHkgaW4gcmFuZ2UoMTUsLTE1LC0xKV0pKQ=='))"

Copyright© 2019 ArdeshirV@protonmail.com Licensed under GPLv3+

About

Draw a lovely heart 4 dear Jadi

https://github.com/ArdeshirV/Viva-Jadi

License:GNU General Public License v3.0


Languages

Language:Python 61.1%Language:Shell 38.9%