Skip to content

Instantly share code, notes, and snippets.

Avatar

SHIOYA, Hiromu kwappa

View GitHub Profile
View python2.6 for homebrew
require 'formula'
<<-COMMENTS
This is the Homebrew formula for Python.
Versions
--------
This formula is currently tracking version 2.6.x.
View test_zenra.rb
# coding: utf-8
require 'test/unit'
require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'lib', 'zenra')
class ZenraTest < Test::Unit::TestCase
def setup
@appid = ENV['YAHOO_APPID']
end
View gist:510926
# -*- coding: utf-8 -*-
require 'cgi'
require 'rexml/document'
require 'open-uri'
class Suggest
attr_reader :response
def initialize
@query_base = "http://www.google.co.jp/complete/search?output=toolbar&hl=ja&q=%s"