Skip to content

Instantly share code, notes, and snippets.

@kwappa
kwappa / emacs.rb
Created March 9, 2011 07:25
emacs 23.2 formula for homebrew with `fix-shiftmodifier-with-ime.patch`
require 'formula'
class Emacs <Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.2.tar.bz2'
md5 '057a0379f2f6b85fb114d8c723c79ce2'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
require 'formula'
<<-COMMENTS
This is the Homebrew formula for Python.
Versions
--------
This formula is currently tracking version 2.6.x.
# 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
# -*- 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"