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
nnoremap epp a<C-R>=join(split(substitute(expand("%:p"), '.*lib/\\|.pm$', "", "g"), "/"), "::")<CR> |
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
sub unindent ($) { | |
my ($str) = @_; | |
$str =~ /^\n*(\s+)/; | |
if ($1) { | |
my $indent = $1; | |
$str =~ s/$indent//g; | |
} | |
$str; | |
} |
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
var url = "http://cho45.g.hatena.ne.jp/cho45/"; | |
var s = {}; | |
next(function getRkm () { | |
return xhttp.get(url). | |
next(function (r) { | |
s.rkm = r.responseText.replace(/^[\S\s]*Hatena\.rkm\s*=\s*(?:'([^']+)'|"([^"]+)")[\S\s]*$/, function (_, v1, v2) { | |
return v1 || v2; | |
}); | |
}); |
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
/** | |
* Multi login for Hatena | |
* cho45 <[email protected]> | |
* 2007-10-15 | |
* | |
* License: | |
* Creative Commons by | |
* http://creativecommons.org/licenses/by/3.0/ | |
* | |
* Using information in your password manager, |
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
// http://reader.livedoor.com/share/ | |
// 選択したフィードの link と title を OPML で | |
// Firebug で実行 | |
var opml = | |
<opml version="1.0"> | |
<head> | |
<title>from ldr share</title> | |
</head> | |
<body> |
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
# 新しく screen window をつくり、カレントディレクトリを実行元のディレクトリに | |
function n () { | |
screen -X eval "chdir $PWD" "screen" "chdir" | |
} |
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
#!js | |
Object.prototype.p = function () { | |
print(uneval(this)); | |
return this; | |
}; | |
function merge (a, b) { | |
var ret = new Array(a.length + b.length); | |
a = a.concat(Infinity); // clone the array and append sentry |
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
$X(".//a[@class='username']/img[@title]").forEach(function (e) { | |
e.parentNode.appendChild(document.createTextNode(" [id:" + e.title + "]")); | |
}); |
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "snarl" | |
def message(str) | |
Snarl.show_message("mabinogi", str, nil, 10) # 日本語で最後の1文字がおかしい。snarl sucks | |
end | |
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
CROSS†CHANNEL | |
果てしなく青いこの空の下で…。 | |
明日の君と逢うために | |
ゆのはな | |
CARNIVAL | |
グリーングリーン | |
ユメミルクスリ | |
そして明日の世界より─ | |
桜華 | |
カタハネ |