This file contains hidden or 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> | |
<style type="text/css"> | |
.selected { font-weight: bold; color: red; background-color: yellow; } | |
</style> | |
</head> | |
<body> | |
<%= menu %> | |
<%= body %> |
This file contains hidden or 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
module SmallCage | |
module BlueClothHelper | |
require "bluecloth" | |
def render_markdown(str) | |
BlueCloth.new(str).to_html | |
end | |
end | |
end |
This file contains hidden or 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
<%= body %> |
This file contains hidden or 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
module SmallCage | |
module ErbHelper | |
# Evaluate ERB source. | |
def _erb(source) | |
@renderer.render_string(source, @obj) | |
end | |
end | |
end |
This file contains hidden or 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
#! /usr/bin/env ruby | |
# ----------------------------------------------- | |
# $ gem --version | |
# 1.3.5 | |
# $ mkdir gemtest | |
# $ cd gemtest | |
# $ gem install -i . bluecloth | |
# $ gem_path_test.rb . bluecloth | |
# ERROR |
This file contains hidden or 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><title>IE6 Table Script Test</title></head> | |
<body> | |
<!-- IE6/7 can't get offsetWidth when script is inside table tag. --> | |
<table><tr><td> | |
<span id="target">abc</span> | |
<script type="text/javascript"> | |
alert("target:" + document.getElementById("target").offsetWidth); | |
</script> |
This file contains hidden or 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
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'yaml' | |
begin | |
require 'rubygems' | |
require 'ya2yaml' | |
rescue Exception => e | |
end |
This file contains hidden or 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
# この行を追加。デフォルトだと-fでCapfileを指定したときにエラーになる。 | |
Dir.chdir(File.dirname(__FILE__)) | |
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains hidden or 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
Dir.chdir(File.dirname(__FILE__)) | |
# load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
# Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains hidden or 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
#! /bin/sh | |
apt-get -y update | |
apt-get -y install less | |
apt-get -y install emacs22 | |
apt-get -y install subversion | |
apt-get -y install apache2 | |
apt-get -y install ruby-dev | |
apt-get -y install rubygems | |
apt-get -y install irb |