Comments (6)
That's interesting;
I was curious about this too, so I looked into the code and found the class definition for the Experience trophy, and it looks like it is based on your Github account age (certain numbers of years).
However, you should still be at least at "Junior Dev" if the code comments are correct:
github-profile-trophy/src/trophy.ts
Lines 270 to 319 in bc4e735
So I'm not entirely sure what's happening in your case, since it seems to be working correctly on my own profile. Maybe another developer could shed some light on this?
from github-profile-trophy.
Hope i was clear with my English
from github-profile-trophy.
Yeah I got it, I joined github in 2022 dec, now its feb of 2024 around a year. So my ranking if 4, 0.5 year is 2 , thus my rank is four as I have been in github for a year. You were very helpful thank you.
: )
from github-profile-trophy.
Happy to help!
Took me a minute to wrap my mind around how the scoring calculations work 😅
But out of curiosity, I looked a bit deeper into how the account age score is calculated, and I may even want to propose a change to one of the threshold scores.
github-profile-trophy/src/user_info.ts
Lines 84 to 89 in bc4e735
This code gets the number of milliseconds since the Github account was created, converts milliseconds to days, and then divides by 100, so the number in durationDays
now actually represents "hundreds of days."
So in the class definition, which uses durationDays
, each rank is assigned at a rounded account age (to the hundreds place), meaning the rank won't immediately reflect when the account is as old as the code comment says.
github-profile-trophy/src/trophy.ts
Lines 288 to 292 in bc4e735
For example, a score of 28 actually means 2800 days, about 7.67 years (more than 7.5). Nearly all of threshold values are the closest whole number value to the correct number of days, adjusted. The only one I would change is that of Master Dev
, because 37 gives a closer estimate to ten years than 40.
Fascinating stuff!
Yes, I spent time doing this. I have no regrets :)
from github-profile-trophy.
This issue is stale because it has been open for 30 days with no activity.
from github-profile-trophy.
This issue was closed because it has been inactive for 14 days since being marked as stale.
from github-profile-trophy.
Related Issues (20)
- Contribution Guidlines
- Add labels to issues HOT 4
- Feature: remote theme HOT 3
- Vercel-Deployment Link is expired. HOT 1
- There is a Space, at the end of the Image of the Trophies HOT 7
- [![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)
- Vercel and GitHub PAT permissions HOT 5
- [Question] GitHub API How to HOT 1
- How to add for private repos HOT 9
- How Experience trophy works.
- Feature Request: Customisable Trophy Size and Spacing HOT 2
- [Enhancement] Transparent/native theme. HOT 7
- INDEX
- PR Trophy Issue HOT 6
- Add feat ; dev container HOT 2
- Filter by title exclude HOT 2
- Transparent theme HOT 1
- AllSuperRankTrophy seems to be unreachable HOT 1
- Feature Request: Filter Rank
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-profile-trophy.