Code Monkey home page Code Monkey logo

git-commit-drawing's Introduction

Working πŸ˜πŸ‘βœ”

  • first we need an image file

  • then we will check image size ratio by funtion - check_image_size_ratio

  • then we compress the image according to our github size

    • which will chisle the image (make image for compression)
    • compress image by a dimention ex- make a sqaure and place more as possible all over the image amd take average of every pixle inside it and make a single pixle of that square {the chisleing is to make image fit squares properly}
    • return dimention and compressed image
  • then we get (git_im) amd (compressed image) with git commit colors for respresentation

    • [git_im] which get numbres of commits for each pixle which is take action daily
  • save results in a folder server-files

    • results will save as image of git image
    • git_commit_file_for_server

github commits colours in RGB and hash colors

πŸ‡πŸΈπŸ²πŸπŸ¦Ž

commit_colours = [
[255,255,255], # #ffffff
[155,233,168], # #9be9a8
[64,196,99],   # #40c463
[48,161,78],   # #30a14e
[33,110,57]    # #216e39
]

To RUN the files 🎈πŸ₯ˆπŸ₯‰πŸ†

first change dir

cd <folder name>

python runner.py file-name with path>

python runner.py img/6.png 

example results

to Run the GUI of the program 🀡

first change dir

cd <folder name>

** you can use the commend to start Drawing this will help you to create image like drawing canvas after drawing our image save it **

python gui.py

what about flapy bird in your repo

server work after creating the files 😎(βŒβ– _β– )

**after saving or running files results will save in server-files folder **

just drop this folder on your server

after downloading the files in server **

cd server-files 

run file in background so it will not killed or terminated after you close ssh

nohup python server-commits.py

read more about nohub here link to a article

this file will ask for some data like username amd password of github for creating one new repo and files in it for git draw this is safe you can add your data here this data will not save or sent any where from the PC

In some days your cool github drawing will apear in your [git contributions chart]


I am also providing reserch2.txt cointain most of the data of finding of this project
.

git-commit-drawing's People

Contributors

rishi23root avatar

Stargazers

 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.