This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Application Templates for rspec-rails | |
# Ruby on Rails : 2.3.2 | |
# rspec-rails : 1.2.0 | |
# http://wiki.github.com/dchelimsky/rspec/configgem-for-rails | |
# use sudo | |
use_sudo = false | |
# Remove the old rspec.rake file | |
run "rm lib/tasks/rspec.rake" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* | |
chrome://browser/content/browser.xul | |
メニューバー | |
#main-menubar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@request.env['HTTPS'] = "on" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe ... do | |
include AuthenticatedTestHelper | |
fixtures :users | |
before(:each) do | |
login_as :user_name | |
end | |
... | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache2.2 で複数バーチャルホスト | |
# Ubuntu9.04 + Apache2.2.11 + Rails + Passenger2.2.5 | |
# /etc/hosts | |
127.0.0.1 localhost | |
127.0.1.1 localhost.localdomain ubuntu-desktop | |
127.0.0.1 mydomain | |
# httpd.conf | |
PassengerPoolIdleTime 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# html-scannerにフォーマットがXMLであることを知らせる | |
# rspecで警告 ignoring attempt to close ... が出ないようにする | |
describe "/articles.rss" do | |
before(:each) do | |
render 'articles/index.rss.builder' | |
response.content_type = 'application/rss+xml; charset=utf-8' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rspecで警告 toplevel constant ... referenced by ... が出てテストが失敗するときに | |
# ArticlesControllerとAdmin::ArticlesControllerがあると発生することがある | |
describe 'Admin::ArticlesController' do | |
controller_name 'Admin::Articles' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<%= yield :head %> | |
</head> | |
<body> | |
<%= yield %> | |
<%= yield :javascript %> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ScalaでSwing | |
import scala.swing._ | |
import scala.swing.event.{ WindowClosing, ButtonClicked } | |
import java.awt.Color | |
import java.io.File | |
import java.util.Date | |
import java.text.SimpleDateFormat | |
object ScalaSwing1 extends SimpleGUIApplication { |
OlderNewer