Code Monkey home page Code Monkey logo

viva-jadi's Introduction

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 [email protected] Licensed under GPLv3+

viva-jadi's People

Contributors

ardeshirv avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.