Skip to content

Instantly share code, notes, and snippets.

@jpsim
Last active November 21, 2015 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpsim/b1880b6141f535293588 to your computer and use it in GitHub Desktop.
Save jpsim/b1880b6141f535293588 to your computer and use it in GitHub Desktop.
GitHub Archive Stars Over Time
select created_at
from [githubarchive:month.201401],
[githubarchive:month.201402],
[githubarchive:month.201403],
[githubarchive:month.201404],
[githubarchive:month.201405],
[githubarchive:month.201406],
[githubarchive:month.201407],
[githubarchive:month.201408],
[githubarchive:month.201409],
[githubarchive:month.201410],
[githubarchive:month.201411],
[githubarchive:month.201412],
where type = 'WatchEvent' AND repository_url = 'https://github.com/username/repo'
order by created_at;
select FORMAT_UTC_USEC(INTEGER(created_at))
from [githubarchive:month.201501],
[githubarchive:month.201502],
[githubarchive:month.201503],
[githubarchive:month.201504],
[githubarchive:month.201505],
[githubarchive:month.201506],
[githubarchive:month.201507],
[githubarchive:month.201508],
[githubarchive:month.201509],
[githubarchive:month.201510],
[githubarchive:month.201511],
where type = 'WatchEvent' AND repo_url = 'https://api.github.com/repos/username/repo'
order by created_at;
@jpsim
Copy link
Author

jpsim commented Nov 21, 2015

@jpsim
Copy link
Author

jpsim commented Nov 21, 2015

Queries performed on Google BigQuery: https://bigquery.cloud.google.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment