Giter Site home page Giter Site logo

codestats-box-python's Introduction

codestats-box-python

๐Ÿ’ป Update a pinned gist to contain your Code::Stats stats

Update gist with Code::Stats stats


๐Ÿ“Œโœจ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

๐ŸŽ’ Prep Work

  1. Make sure you have a Code::Stats account! (Get one at https://codestats.net/ if you don't!)
  2. Create a new public GitHub Gist (https://gist.github.com/)
  3. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  4. Copy the API token

๐Ÿ–ฅ Project Setup

  1. Fork this repo
  2. Go to your fork's Settings > Secrets > Add a new secret for each environment secret (below)

๐Ÿคซ Environment Secrets

  • GH_TOKEN: The GitHub token generated above.

  • GIST_ID: The ID portion from your gist url:

    https://gist.github.com/aksh1618/ce5221fc5f3739d2c81ce7db99f17519.

    (Alternatively this can be put directly in .github/workflows/codestats.yml as it is public anyway.)

  • CODE_STATS_USERNAME: Your Code::Stats username. (This can also be put directly in the yml)

  • STATS_TYPE: (Optional) Type of stats, supported values:

    • level-xp: (Default) Shows total and language XPs with level, sorted by XP:

      ๐Ÿ’ป My Code::Stats XP (Top Languages)
      Total XP :::::::::::::::::::::: lvl  26 (1,104,152 XP)
      Java :::::::::::::::::::::::::: lvl  19 (  580,523 XP)
      
    • recent-xp: Shows total and language XPs with level and recent xp, sorted by recent XP:

      ๐Ÿ’ป My Code::Stats XP (Recent Languages)
      Total XP ::::::::::::: lvl  26 (1,104,152 XP) (+1,874)
      Python ::::::::::::::: lvl   7 (   82,719 XP) (+1,789)
      
    • xp: Shows total and language XPs, sorted by XP:

      ๐Ÿ’ป My Code::Stats XP (Top Languages)
      Total XP :::::::::::::::::::::::::::::::: 1,104,152 XP
      Java ::::::::::::::::::::::::::::::::::::   580,523 XP
      

    (This can also be put directly in .github/workflows/codestats.yml)

๐Ÿค“ Hacking

# setup
pipenv install --dev
# testing
# only content
pipenv run python codestats_box.py test <codestats-user> <stats-type>
# content and gist update
pipenv run python codestats_box.py test <codestats-user> <stats-type> <gist-id> <github-token>
# example
# pipenv run python codestats_box.py test aksh recent-xp ce5221fc5f3739d2c81ce7db99f17519 cf9181618bf1618253d17161843f71a2bb161850

codestats-box-python's People

Contributors

aksh1618 avatar kk5190 avatar karngyan 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.