Skip to content

Instantly share code, notes, and snippets.

View RickJP's full-sized avatar
🏠
Working from home

Rick RickJP

🏠
Working from home
View GitHub Profile
@henrik
henrik / gist_search.rb
Created January 10, 2011 20:54
Search your own public Gists from the command line. Because the site only provides global search. There's not yet an API for private Gists.
require "open-uri"
require "rubygems"
require "json"
USERNAME = "henrik"
query = ARGV.first.downcase
gists = JSON.parse(open("http://gist.github.com/api/v1/json/gists/#{USERNAME}").read)['gists']