Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Created June 26, 2011 19:14
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 spacecowb0y/1047875 to your computer and use it in GitHub Desktop.
Save spacecowb0y/1047875 to your computer and use it in GitHub Desktop.
HACK THE PLANET
@projects_by_date = repository(:default).adapter.select('SELECT id,DAYOFWEEK(created_at) AS creation_day, COUNT(id) AS per_day FROM projects GROUP BY creation_day ORDER BY creation_day ASC')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment