2015-10-21
- jennifer
- martym
def self.popular_this_week | |
Podcast. | |
joins(:downloads). | |
select("podcasts.*, COUNT(podcast_id) as download_count"). | |
where("downloads.created_at >= ?", 1.week.ago.utc). | |
group("podcasts.id"). | |
order("download_count DESC") | |
end |
chato
Hope is not a plan
https://gorails.com/setup/osx/10.11-el-capitan (Ruby 2.2.2)
#include <stdio.h> | |
int is_par(int number); | |
void jogo_par_ou_impar(); | |
void jogo_nim(); | |
int main(int argc, const char * argv[]) { | |
int matricula; | |
int continuar_jogando = 1; | |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |