Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiTeams committed Jun 16, 2013
1 parent ac61378 commit 85152d4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 422 deletions.
27 changes: 0 additions & 27 deletions .gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile → Makefile2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
all: get format

get:
coffee get-repositories.coffee
coffee get-details.coffee
../node_modules/coffee-script/bin/coffee -c get-repositories.coffee
# coffee get-details.coffee

format:
coffee format-languages.coffee
Expand Down
3 changes: 2 additions & 1 deletion get-repositories.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ utils = require './utils'
saveTopRepos = ->
MIN_FOLLOWERS = 5
MAX_PAGES = 10
ELEMENTS_PER_PAGE = 1000
urls = utils.range(1, MAX_PAGES + 1).map (page) ->
"https://api.github.com/legacy/repos/search/type=repo?sort=size&order=desc?page=#{page}&per_page=#{MAX_PAGES}"
"https://api.github.com/legacy/repos/search/linux?type=repo?sort=size&order=desc?page=#{page}&per_page=#{ELEMENTS_PER_PAGE}"

parse = (text) ->
JSON.parse(text).repositories.map (_) -> _.name
Expand Down
31 changes: 31 additions & 0 deletions get-repositories.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 85152d4

Please sign in to comment.