Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santinic/favlang
Finds github users preferred language
https://github.com/santinic/favlang
Last synced: about 1 month ago
JSON representation
Finds github users preferred language
- Host: GitHub
- URL: https://github.com/santinic/favlang
- Owner: santinic
- Created: 2013-11-25T10:31:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-25T10:51:14.000Z (about 11 years ago)
- Last Synced: 2024-05-02T23:39:16.981Z (8 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
It just takes the lang with the max number of projects.
In case of draw, it takes the first one.
It doesn't do oauth, so you can run it just few times before
getting your IP banned.To run it:
```
$ npm install lodash request
$ node favlang.js username
```But this almost does it too:
python -c 'import requests, functools, operator, sys, collections; y=dict(functools.reduce(operator.add, map(collections.Counter, [requests.get("https://api.github.com/repos/"+sys.argv[1]+"/"+x["name"]+"/languages").json() for x in requests.get("https://api.github.com/users/"+sys.argv[1]+"/repos").json()] ))); print sorted(y, key=y.get,reverse=True)' autoscatto