mattn mattn

View mod.rb
1 2 3 4 5 6 7
class Module
def module_function(*args)
args.each do |x|
self.class.send(:define_method, x) {|*args| Class.new.send(:include, self).new.send(x, *args)}
end
end
end
View ff.rb
1 2 3 4 5 6 7 8 9 10
#! bin/mruby
data =<<"@EOF"
{
"results" : [
{
"address_components" : [
{
"long_name" : "1600",
"short_name" : "1600",
"types" : [ "street_number" ]
View gist:9641684
1 2 3 4 5 6 7 8 9 10
diff --git a/lib/Ukigumo/Server/Web/Dispatcher.pm b/lib/Ukigumo/Server/Web/Dispatcher.pm
index f417210..17b04e8 100644
--- a/lib/Ukigumo/Server/Web/Dispatcher.pm
+++ b/lib/Ukigumo/Server/Web/Dispatcher.pm
@@ -42,12 +42,35 @@ get '/cc.xml' => sub {
push @{$projects{$project->{project}}}, $project;
}
- $c->render( 'cc.xml.tx',
+ my $res = $c->render( 'cc.xml.tx',
View gist:9641662
1 2 3 4 5 6 7 8 9 10
diff --git a/lib/Ukigumo/Server/Web/Dispatcher.pm b/lib/Ukigumo/Server/Web/Dispatcher.pm
index f417210..17b04e8 100644
--- a/lib/Ukigumo/Server/Web/Dispatcher.pm
+++ b/lib/Ukigumo/Server/Web/Dispatcher.pm
@@ -42,12 +42,35 @@ get '/cc.xml' => sub {
push @{$projects{$project->{project}}}, $project;
}
- $c->render( 'cc.xml.tx',
+ my $res = $c->render( 'cc.xml.tx',
View gist:9641629
1 2 3 4 5 6 7 8 9 10
diff --git a/lib/Ukigumo/Server/Web/Dispatcher.pm b/lib/Ukigumo/Server/Web/Dispatcher.pm
index f417210..64b028f 100644
--- a/lib/Ukigumo/Server/Web/Dispatcher.pm
+++ b/lib/Ukigumo/Server/Web/Dispatcher.pm
@@ -24,12 +24,14 @@ any '/' => sub {
push @{$projects{$project->{project}}}, $project;
}
- $c->render( 'index.tx',
+ my $res = $c->render( 'index.tx',
View real.pl
1 2 3 4 5
use strict;
use warnings;
use FindBin::libs;
use Cwd;
warn Cwd::realpath(".");
View gist:9640157
1 2 3 4 5 6 7 8 9 10
Plack/Loader
Plack/Middleware/Lint
Plack/Middleware/StackTrace
Plack/Middleware/AccessLog
ここまでは出ない
 
Amon2/Plugin/ShareDir
ここから出る
 
Amon2/Plugin/Web/JSON
View thread.rb
1 2 3 4 5 6 7 8 9 10
#require 'mruby-thread'
 
m = Mutex.new
v = "foo"
th = Thread.new(v, m) do |v, m|
for num in 1..3 do
m.lock
print("thread: num = ", num, "\n")
m.unlock
Thread.sleep 1
View cancel-input.diff
1 2 3 4 5 6 7 8 9 10
Index: twitvim.vim
===================================================================
--- twitvim.vim (revision 349)
+++ twitvim.vim (working copy)
@@ -2332,6 +2332,12 @@
redraw
let mesg = input("Tweet: ", a:initstr)
call inputrestore()
+
+ if mesg == ""
View gist:9592235
1 2 3 4 5 6 7 8 9 10
diff --git a/configure.ac b/configure.ac
index 719634b..ddda091 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,8 @@ AH_VERBATIM([EXTERNAL_SORT], [
# undef EXTERNAL_SORT
#endif
])
+AH_TEMPLATE([HAVE_ICONV],
+ [Define this value if support multibyte character encoding.])
Something went wrong with that request. Please try again.