Skip to content

Instantly share code, notes, and snippets.

View tamoot's full-sized avatar

Masahiro TAMURA tamoot

  • とやまし
  • Toyama, Japan
View GitHub Profile
We couldn’t find that file to show.
# -*- coding: utf-8 -*-
#
# twitter_anywhere.rb - bringing the Twitter communication platform to tDiary
# http://dev.twitter.com/anywhere/begin
#
# Copyright (C) 2010, tamoot <tamoot+tdiary@gmail.com>
# You can redistribute it and/or modify it under GPL2.
#
Index: rakuten.rb
===================================================================
--- rakuten.rb (revision 20)
+++ rakuten.rb (working copy)
@@ -111,13 +111,18 @@
price = rakuten_get_price( doc )
shop = rakuten_get_shop( doc )
<<-HTML
- <a href="#{h( link )}">
+ <div class="isbn_detail">
ARGV.each_with_index do |arg, index|
print "#{"%02d: " % index}\t#{arg}\t=unpack=>\t[#{arg.unpack('C*').join(", ")}]\n"
end
Index: tdiary.conf.svn_head
===================================================================
--- tdiary.conf.svn_head (revision 7)
+++ tdiary.conf.svn_head (working copy)
@@ -292,7 +292,7 @@
# が制限されます。
#----
@secure = false
-@options['sp.path'] = ['/home/harabu/workspace/svn_tdiary/plugin', '/home/harabu/workspace/svn_tdiary/contrib/plugin', '/home/harabu/workspace/svn_local/trunk/tdiary/plugin']
+@options['sp.path'] = ['/home/harabu/workspace/svn_tdiary/core/misc/plugin', '/home/harabu/workspace/svn_tdiary/contrib/plugin', '/home/harabu/workspace/svn_local/trunk/tdiary/plugin', '/home/harabu/workspace/github/tdiary_google_map', '/home/harabu/workspace/github/tdiary_twitter_anywhere']
include 'java'
list = java.util.ArrayList.new
while true
list.add(java.lang.Byte[1024])
end
# => java.lang.OutOfMemoryError: Java heap space
{{google_geomap '富山市役所', :type => :HYBRID, :zoom => 14}}
{{google_geomap '富山市役所', :type => :SATELLITE, :zoom => 14}}
{{google_geomap '富山市役所', :type => :ROADMAP, :zoom => 14}}
Index: category.rb
===================================================================
--- category.rb (リビジョン 3640)
+++ category.rb (作業コピー)
@@ -616,19 +616,20 @@
if @conf['category.edit_support'] then
add_header_proc do
%Q[\t<script type="text/javascript"><!--
- function inj_c(str) {
+ function inj_c() {
Index: category.rb
===================================================================
--- category.rb (revision 3640)
+++ category.rb (working copy)
@@ -616,9 +616,10 @@
if @conf['category.edit_support'] then
add_header_proc do
%Q[\t<script type="text/javascript"><!--
- function inj_c(str) {
+ function inj_c() {
div.foursquare-widget{
background-color: #999999;
color: #ffffff;
border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
padding: 0.5em;
width: 160px;
margin-left: 15px;
}