Git Product home page Git Product logo

devrel-heartmaker's Introduction

Heart Maker

A script by Jina AI to show love for our GitHub contributors

This script:

  • scrapes a list of contributor avatar images from all the repositories of a GitHub organization
  • creates a mosaic of the images in the shape of a heart
  • presents the heart and allow saving as image

Usage

  1. Generate a new GitHub token. Ensure read:org and read:user are checked
  2. Export the token as an environment variable: export GITHUB_TOKEN=<whatever_your_token_is>
  3. Clone this repo: git clone [email protected]:jina-ai/devrel-heartmaker.git
  4. cd devrel-heartmaker
  5. pip install -r requirements.txt
  6. python app.py --org_name=<your_org_name>
  7. The script will take a while (the more contributors, the more time)
  8. A window will pop up allowing you to view and save the heart mosaic

FAQ

How can I change the size of the avatars/heart?

Tweak grid_size in app.py

Why are some avatars duplicated?

There are only a finite number of ways to fill a heart. You couldn't do it with just 1 or 2 avatars without duplication after all. As long as there are gaps in the heart, they have to be filled somehow, and we do this via duplication

I have too many contributors, and I can't show them all

Change grid_size = 20 to a larger number, say grid_size = 30 (~ 150 contributors), grid_size = 40 (~ 200 contributors)

What Can You Do With It?

Personalized Thanksgiving Social Banners

Inspiration

devrel-heartmaker's People

Contributors

alexcg1 avatar hanxiao avatar shiyu22 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.