This file contains hidden or 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
From 32aa94f5636cea4d35ee833d8c3e331303721eb7 Mon Sep 17 00:00:00 2001 | |
From: Nobuhiro IMAI <[email protected]> | |
Date: Thu, 24 Mar 2011 23:12:10 +0900 | |
Subject: [PATCH] show "[P]" as protected mark | |
--- | |
lib/earthquake/output.rb | 3 ++- | |
1 files changed, 2 insertions(+), 1 deletions(-) | |
diff --git a/lib/earthquake/output.rb b/lib/earthquake/output.rb |
This file contains hidden or 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/public/javascripts/draw.js b/public/javascripts/draw.js | |
index 747329e..fc2dc53 100644 | |
--- a/public/javascripts/draw.js | |
+++ b/public/javascripts/draw.js | |
@@ -66,7 +66,7 @@ function draw (e) { | |
function set_pen_color () { | |
var c = $(this).attr("id"); | |
if (c=='eraser') { | |
- pen_color[0] = canvas_color; | |
+ pen_colors[0] = canvas_color; |
This file contains hidden or 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/public/javascripts/prototype.js b/public/javascripts/prototype.js | |
index dfe8ab4..bd16ae9 100644 | |
--- a/public/javascripts/prototype.js | |
+++ b/public/javascripts/prototype.js | |
@@ -644,6 +644,20 @@ var Enumerable = { | |
return results; | |
}, | |
+ count: function() { | |
+ var item = arguments[0]; |
This file contains hidden or 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/plugins/defaults/stdout.rb b/lib/plugins/defaults/stdout.rb | |
index 53f61d1..2a0fb18 100644 | |
--- a/lib/plugins/defaults/stdout.rb | |
+++ b/lib/plugins/defaults/stdout.rb | |
@@ -28,7 +28,7 @@ config.plugins.stdout.set_default(:time_format_not_today, '%y/%m/%d %H:%M') | |
config.plugins.stdout.set_default(:enable_pager, false) | |
config.plugins.stdout.set_default(:pager, 'less -R -f +G') | |
config.plugins.stdout.set_default(:window_height, 50) | |
-config.plugins.stdout.set_default(:typable_ids, ('aa'..'zz').to_a) | |
+config.plugins.stdout.set_default(:typable_ids, ('aa'..'zz').cycle) |
This file contains hidden or 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/termtter/system_extensions.rb b/lib/termtter/system_extensions.rb | |
index 8816427..d211d95 100644 | |
--- a/lib/termtter/system_extensions.rb | |
+++ b/lib/termtter/system_extensions.rb | |
@@ -73,7 +73,7 @@ def open_browser(url) | |
else | |
[['xdg-open'], ['firefox'], ['w3m', '-X']] | |
end.find do |cmd| | |
- system *cmd, url | |
+ system(*(cmd + [url])) |
This file contains hidden or 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/plugins/expand-tinyurl.rb b/lib/plugins/expand-tinyurl.rb | |
index 15368a8..4ab563d 100644 | |
--- a/lib/plugins/expand-tinyurl.rb | |
+++ b/lib/plugins/expand-tinyurl.rb | |
@@ -40,8 +40,9 @@ def expand_url(host, path) | |
h.get(path, { 'User-Agent' => 'Mozilla' }) | |
end | |
return nil unless res.code == "301" or res.code == "302" | |
- newurl = res['Location'] | |
- newurl.force_encoding(Encoding::UTF_8) if newurl.respond_to?(:force_encoding) |
This file contains hidden or 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/plugins/defaults/confirm.rb b/lib/plugins/defaults/confirm.rb | |
index 37939b2..29e6da9 100644 | |
--- a/lib/plugins/defaults/confirm.rb | |
+++ b/lib/plugins/defaults/confirm.rb | |
@@ -1,14 +1,15 @@ | |
# -*- coding: utf-8 -*- | |
config.set_default(:confirm, true) | |
-def confirm(message) | |
- if config.confirm && !Termtter::Client.confirm(message) |
This file contains hidden or 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 -*- | |
Termtter::Client.register_command( | |
:name => :skiing, | |
:alias => :ski, | |
:help => ["skiing [WHERE]", "Where are you skiing now?"], | |
:exec_proc => lambda {|arg| | |
arg = "街中" if arg.empty? | |
text = "スキーで#{arg}を移動中です♪" | |
Termtter::API.twitter.update(text) | |
puts "=> " << text |
This file contains hidden or 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 1.8.8dev (2009-11-30 revision 25965) [i686-linux] | |
GNU gdb (GDB) 7.0-debian | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i486-linux-gnu". | |
For bug reporting instructions, please see: |
This file contains hidden or 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 1.8.7 (2009-11-25 patchlevel 225) [i686-linux] | |
GNU gdb (GDB) 7.0-debian | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i486-linux-gnu". | |
For bug reporting instructions, please see: |