View app.rb
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
require 'sinatra' | |
require 'json' | |
require 'rest-client' | |
require 'open-uri' | |
post '/callback' do | |
params = JSON.parse(request.body.read) rescue Hash.new([]) | |
params['result'].each do |msg| | |
img = nil |
View gplus2twitter.rb
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/env ruby | |
$KCODE = 'u' | |
require 'net/https' | |
require 'open-uri' | |
require 'time' | |
require 'jcode' | |
require 'tmpdir' | |
require 'rubygems' |
View gplus2twitter.rb
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/env ruby | |
require 'net/https' | |
require 'open-uri' | |
require 'time' | |
require 'tmpdir' | |
require 'rubygems' | |
require 'oauth' | |
require 'json/pure' |
View gist:1972632
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
Index: ja/search_control.rb | |
=================================================================== | |
--- ja/search_control.rb (リビジョン 3712) | |
+++ ja/search_control.rb (作業コピー) | |
@@ -61,6 +61,7 @@ | |
Search_control_categories = [ | |
[ '最新', 'latest' ], | |
[ '一日分', 'day' ], | |
+ [ 'セクション', 'section' ], | |
[ '一月分', 'month' ], |
View gist:1613598
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
--- a/plugin/section_footer2.rb | |
+++ b/plugin/section_footer2.rb | |
@@ -48,7 +48,7 @@ unless defined?(subtitle) | |
end | |
def init_buttons_status | |
- @installed_buttons = ['yaml', 'delicious', 'hatena', 'facebook', 'twitter', 'plusone'] | |
+ @installed_buttons = ['yaml', 'delicious', 'hatena', 'facebook', 'twitter', 'plusone', 'grow'] | |
if @conf['section_footer2.isDisplay'].nil? | |
@conf['section_footer2.isDisplay'] = '' |
View gplus2twitter.rb
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/env ruby | |
require 'open-uri' | |
require 'time' | |
require 'tmpdir' | |
require 'rubygems' | |
require 'oauth' | |
require 'json/pure' | |
user_id = '(Your Google+ user ID)' |