Skip to content

Instantly share code, notes, and snippets.

View dragon3's full-sized avatar
🍺
🍺 🍻 🍺 🍻 🍺

Ryuzo Yamamoto dragon3

🍺
🍺 🍻 🍺 🍻 🍺
View GitHub Profile
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode qw(encode_utf8);
use RPC::XML::Client;
$RPC::XML::ENCODING = 'utf8';
#!/bin/bash
# Create a Amazon Linux base image for Docker
#
set -e
MIRROR_URL="http://packages.ap-northeast-1.amazonaws.com/2013.09/main/201309001984/x86_64/"
MIRROR_URL_UPDATES="http://packages.ap-northeast-1.amazonaws.com/2013.09/updates/c821ef08810f/x86_64/"
yum --enablerepo=epel install -y febootstrap xz
;; (setenv "PERL5LIB" "/home/yamamoto/perl5/lib/perl5:/home/yamamoto/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:$PERL5LIB")
(setq exec-path (cons "/home/yamamoto/perl5/perlbrew/bin" exec-path))
(setenv "PATH" (concat '"/home/yamamoto/perl5/perlbrew/bin:" (getenv "PATH")))
(autoload 'cperl-mode
"cperl-mode"
"alternate mode for editing Perl programs" t)
(fset 'perl-mode 'cperl-mode)
use strict;
use warnings;
use Plack::Request;
use Plack::Response;
use AnyEvent::HTTP;
use Cache::FastMmap;
my $cache = Cache::FastMmap->new( expire_time => "1h" );
use strict;
use warnings;
use utf8;
use Encode qw(encode_utf8);
use MIME::Base64 qw(decode_base64);
use OAuth::Lite::Consumer;
use Plack::Request;
use Plack::Response;
[core]
pager = LESS=-R less
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
[github]
#!/usr/bin/env perl
use feature ":5.10";
use strict;
use utf8;
use Tatsumaki::Error;
use Tatsumaki::Application;
use Tatsumaki::HTTPClient;
use Tatsumaki::Server;
use Tatsumaki::MessageQueue;
/usr/bin/tr '\015' '\012' < test.cgi > test2.cgi
chmod +x test2.cgi
diff --git a/xpi/chrome/content/quickPostForm.js b/xpi/chrome/content/quickPostForm.js
index 1ac39b6..6693133 100755
--- a/xpi/chrome/content/quickPostForm.js
+++ b/xpi/chrome/content/quickPostForm.js
@@ -42,7 +42,7 @@ function DialogPanel(position, message){
window.addEventListener('keydown', bind('onKeydown', this), true);
// 不可視にして描画を隠す
- self.elmWindow.style.opacity = 0;
+ // self.elmWindow.style.opacity = 0;
diff --git a/xpi/chrome/content/quickPostForm.js b/xpi/chrome/content/quickPostForm.js
index 1ac39b6..ba8912c 100755
--- a/xpi/chrome/content/quickPostForm.js
+++ b/xpi/chrome/content/quickPostForm.js
@@ -78,11 +78,12 @@ function DialogPanel(position, message){
}
window.addEventListener('resize', bind('onWindowResize', self), true);
+
} finally {