A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #!/usr/bin/env ruby | |
| if ARGV[0].nil? || ARGV[0].match(/-h/) | |
| puts "Usage : #{$0} github_username dash_sqlite_db char_appended_to_keyword [no_comments]" | |
| exit | |
| end | |
| require 'net/http' | |
| require 'open-uri' | |
| #require 'awesome_print' |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer