aksh1618 / codestats-box-python Goto Github PK
View Code? Open in Web Editor NEW:bar_chart: Update a pinned gist to contain your Code::Stats stats
License: MIT License
:bar_chart: Update a pinned gist to contain your Code::Stats stats
License: MIT License
It could be made into a proper GitHub action by going the docker way, but it's hard to argue the project's merit as a proper GitHub action. Need to collect some pros and cons before deciding.
It would be nice to check the existing contents of the gist and skip updating if it already exists. This would help avoid this:
The recent xp mode currently just adds the (+ xp) part to the overall top languages if new xp is present. It should instead show top languages by new xp instead of by total xp. This should be made the behaviour for current Recent XP mode, complete with the level, as shown on the official codestats site:
Rust ::::::::::::::::::: lvl 0 (1,289 XP) (+10)
The current behaviour of recent xp mode could be moved to a new mode, or removed entirely.
The action is failing in case of 502 by Github, need to handle the exception and retry. Stacktrace:
Using default stats type: level-xp
Traceback (most recent call last):
File "codestats_box.py", line 269, in <module>
main()
File "codestats_box.py", line 248, in main
update_gist(title, content)
File "codestats_box.py", line 215, in update_gist
gist.edit(title, {old_title: InputFileContent(content, title)})
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/github/Gist.py", line 260, in edit
headers, data = self._requester.requestJsonAndCheck(
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
return self.__check(
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 502 {"message": "Server Error"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.