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
#!/usr/bin/ruby | |
# | |
# this script dumps diary data from tDiary 2.2.x. | |
# | |
# usage: $0 /path/to/tdiary/dir [/path/to/tdiary.conf/dir] > tdiary.dat | |
# | |
# Author: akira at arika.org | |
# License: tDiary's | |
config_override = proc do |config| |
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
#!/usr/bin/ruby | |
# | |
# this script imports dump data of tDiary 2.2.x to Typo 5.1.x. | |
# (ref: http://gist.github.com/24118) | |
# | |
# usage: /path/to/typo-base-dir/script/runner tdiary2typo.rb /path/to/tdiary.dat | |
# | |
# Author: akira at arika.org | |
# License: Ruby's | |
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
# gonzui <http://gonzui.sf.net> wrapper for Rack | |
unless defined?(GONZUIRC) | |
GONZUIRC = File.expand_path('~/.gonzuirc') | |
end | |
require 'gonzui' | |
require 'gonzui/webapp' | |
class GonzuiWEBrickServletApp |
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
# reload anoter version of RubyGems | |
lp0 = $:.dup | |
ENV["GEM_HOME"] = "/tmp/GEM" | |
$:.unshift "REL_1_1_1/lib" | |
p require "rubygems" #=> true | |
p Gem::RubyGemsVersion #=> "1.1.1" | |
gem "rails" | |
lp1 = $:.dup |
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
書籍「プログラミング言語Ruby」と | |
Ruby 1.9.1RC2のNEWSファイルの対応状況。 | |
o - 記述あり | |
x - 記述なし | |
- - 対象範囲外 | |
? - 未確認・判断できず | |
------------------------------------------------------------------------------ | |
= NEWS |
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
diff --git a/lib/capistrano/command.rb b/lib/capistrano/command.rb | |
index 8e0c61b..87a4c41 100644 | |
--- a/lib/capistrano/command.rb | |
+++ b/lib/capistrano/command.rb | |
@@ -207,13 +207,15 @@ module Capistrano | |
if options[:shell] == false | |
shell = nil | |
+ shell, cmd = replace_environment(shell, cmd) | |
else |
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
pinned = Pin.find(:all,:conditions => [ 'pins.eid = last_modifieds.eid AND user_id = ?','arika' ], :joins => 'LEFT OUTER JOIN last_modifieds', :order => 'last_modifieds.date desc',:offset =>0,:limit => 10) | |
D,[22:27:06.977] Pin Load (0.0ms) Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (pins.eid = last_modifieds.eid AND user_id = 'arika') ORDER BY last_modif' at line 1: SELECT `pins`.* FROM `pins` LEFT OUTER JOIN last_modifieds WHERE (pins.eid = last_modifieds.eid AND user_id = 'arika') ORDER BY last_modifieds.date desc LIMIT 0, 10 |
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
pinned = Pin.find(:all,:conditions => [ 'user_id = ?','arika' ], :joins => 'LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid', :order => 'last_modifieds.date desc',:offset =>0,:limit => 10) | |
D,[22:31:17.510] Pin Load (0.6ms) SELECT `pins`.* FROM `pins` LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid WHERE (user_id = 'arika') ORDER BY last_modifieds.date desc LIMIT 0, 10 |
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
module UpstreamSupport | |
module Utils | |
def initialize(config) | |
@config = config | |
end | |
def to_ary | |
to_a | |
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
# -*- coding: utf-8 -*- | |
config.plugins.auto_search.set_default(:keywords, []) | |
module Termtter::Client | |
public_storage[:auto_search] ||= { | |
:since_id => nil, | |
:keyword => {}, | |
} |
OlderNewer