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
rvm install 2.0.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
config.active_record.mass_assignment_sanitizer = :strict | |
config.active_record.auto_explain_threshold_in_seconds = 0.5 |
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
# Install with: | |
# bash < <(curl -L https://raw.github.com/gist/3011250) | |
# | |
# Reference: http://bismar.hatenablog.com/entry/2012/05/22/163305 | |
echo "Installing rubydebug with ruby-1.9.3-p194 ..." | |
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem | |
curl -OL http://rubyforge.org/frs/download.php/64707/ruby-debug-ide19-0.4.12.gem |
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
# Install with: | |
# bash < <(curl -L https://raw.github.com/gist/2767067) | |
# | |
# Reference: http://bismar.hatenablog.com/entry/2012/05/22/163305 | |
echo "Installing rubydebug- with ruby-1.9.3-p125 ..." | |
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem | |
curl -OL http://rubyforge.org/frs/download.php/64707/ruby-debug-ide19-0.4.12.gem |
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
$(function(){ | |
var items_count=$("#change_advertisements li").size(); | |
if(items_count < 1) return; //バナーが一つしかない場合は処理を行わない | |
var interval=7e3; | |
var target_index=1; | |
var change_bunner=function(){ | |
var target = $("a.advertisement_link:eq("+target_index+")"); |
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
<div class="preview" style="visibility: hidden"> | |
<iframe src='preview.html' id="preview"></iframe> | |
</div> |
NewerOlder