- Timestamp:
- 08/05/08 17:42:12 (4 months ago)
- Files:
-
- 1 modified
-
lang/vim/ruby/mixi.vim (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/vim/ruby/mixi.vim
r17102 r17103 99 99 10.downto(1) do |i| 100 100 buf = '' 101 buf << (page/("div#echo_nickname_ " + i.to_s)).first.to_plain_text.toutf8101 buf << (page/("div#echo_nickname_#{i}")).first.to_plain_text.toutf8 102 102 buf << ":" 103 buf << (page/("div#echo_body_ " + i.to_s)).first.to_plain_text.toutf8103 buf << (page/("div#echo_body_#{i}")).first.to_plain_text.toutf8 104 104 line.push buf 105 105 end … … 140 140 # line2: input your password 141 141 # line3: input "premium" if you are premium 142 if File.exist?(File.expand_path('~/.mixi'))143 mixi_config = File.read(File.expand_path('~/.mixi'))144 email, password, premium = mixi_config.split(/\r?\n/)145 Mixi.new email, password, (premium == 'premium')146 else147 m = Mixi.new 'YOUR_EMAIL', 'YOUR_PASSWORD'148 end142 if File.exist?(File.expand_path('~/.mixi')) 143 mixi_config = File.read(File.expand_path('~/.mixi')) 144 email, password, premium = mixi_config.split(/\r?\n/) 145 Mixi.new email, password, (premium == 'premium') 146 else 147 m = Mixi.new 'YOUR_EMAIL', 'YOUR_PASSWORD' 148 end 149 149 # if you are mixi premium member: 150 150 # m = Mixi.new 'YOUR_EMAIL', 'YOUR_PASSWORD', true … … 162 162 body = body[0..-(images.length + 1)].join "\n" 163 163 164 m = create_mixi_instance ;164 m = create_mixi_instance 165 165 166 166 m.post title.toeuc, body.toeuc, images … … 177 177 message = VIM.evaluate %[getline('.')] 178 178 179 m = create_mixi_instance ;179 m = create_mixi_instance 180 180 181 181 fork { … … 191 191 message = VIM.evaluate %[getline(1)] 192 192 193 m = create_mixi_instance ;193 m = create_mixi_instance 194 194 195 195 m.post_echo message.toeuc
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)