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> |
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
# 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
# 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
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
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
$ sudo R | |
> install.packages("DBI") | |
> install.packages("RMySQL") |
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
$ R | |
> name <- c('suzuki','sato','yamada') | |
> height <- c('172','165','184') | |
> weight <- c('60','58','75') | |
> users_table <- data.frame(name,height,weight) | |
> users_table | |
name height weight | |
1 suzuki 172 60 | |
2 sato 165 58 | |
3 yamada 184 75 |
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
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/Users/me/.rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb | |
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxml2/2.8.0... OK | |
Running 'configure' for libxml2 2.8.0... OK | |
Running 'compile' for libxml2 2.8.0... OK | |
Running 'install' for libxml2 2.8.0... OK | |
Activating libxml2 2.8.0 (from /Users/me/.rvm/gems/ruby-1.9.3-p429@myapp/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0)... | |
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxslt/1.1.26... OK | |
Running 'configure' for libxslt 1.1.26... OK |
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
tz_countries = TZInfo::Country.all |
OlderNewer