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
javascript:(function(){ | |
/* 神戸市図書館蔵書検索ブックマークレット */ | |
/* 選択された文字列を取得する なければダイアログで取得する */ | |
var kwd = ""+(window.getSelection?window.getSelection():document.getSelection()); | |
if(!kwd){ | |
kwd = prompt("Kobe lib search... ",""); | |
} | |
/* POST送信用のフォームを作成する */ |
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 | |
# XMLをParseするためのクラスparseをインポート | |
from xml.etree.ElementTree import parse | |
# Google readerの登録フィードを読み込み、 | |
# body要素の子にあるすべてのoutline要素のリストを取得してelesに | |
tree = parse("google-reader-subscriptions.xml") | |
eles = tree.getroot().find("body").findall("outline") |
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
javascript:(function(){ | |
var q, location; | |
/* 選択された文字列を取得 */ | |
/* 選択されてなければダイアログから文字列を取得 */ | |
q = ""+(window.getSelection?window.getSelection():document.getSelection()); | |
if(!q) q = prompt("Amazon search... ",""); | |
/* urlエスケープした上でAmazonにリクエスト */ |
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
javascript:(function(){ | |
/* Amazon JP の書籍詳細ページから Amazon US の書籍詳細ページに飛ぶブックマークレット */ | |
/* htmlドキュメント内からISBNもしくはASINを探す */ | |
var bs = document.body.getElementsByTagName('b'); | |
for(var i=0;i<bs.length;i++){ | |
/* 洋書の場合はISBNを探す */ | |
if( bs[i].innerText == 'ISBN-10:'){ | |
codeuniq = bs[i].parentNode.innerText.slice(8); | |
var code_is_isbn = true; |
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
javascript: (function() { | |
/* Amazon US の書籍詳細ページから Amazon JP の書籍詳細ページに飛ぶブックマークレット */ | |
/* htmlドキュメント内からISBNもしくはASINを探す */ | |
var bs = document.body.getElementsByTagName('b'); | |
for(var i = 0; i < bs.length; i++) { | |
if(bs[i].innerText == 'ISBN-10:') { | |
codeuniq = bs[i].parentNode.innerText.slice(9); | |
var code_is_isbn = true; | |
break; |
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
javascript: (function() { | |
/* Amazonの書籍詳細ページからISBNをキーにGoogle Booksに飛ぶブックマークレット */ | |
/* htmlドキュメント内からISBNを探す */ | |
var bs = document.body.getElementsByTagName('b'); | |
for(var i = 0; i < bs.length; i++) { | |
if(bs[i].innerText == 'ISBN-10:') { | |
codeuniq = bs[i].parentNode.innerText.slice(9); | |
break; | |
} |
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
Show hidden characters
{ | |
// "cmd": ["ruby", "$file"], | |
// for bash and rvenv | |
"shell": true, | |
"cmd": ["source ~/.bashrc; ruby -v; ruby $file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
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
S_ExecCommand('ruby -Ku "$F"', 1); |
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
--- | |
- kami: 百敷や古き軒端のしのぶにも | |
shimo: なほ余りある昔なりけり | |
yomite: 順徳院 | |
- kami: 人も愛し人も恨めしあじきなく | |
shimo: 世を思ふゆゑにもの思ふ身は | |
yomite: 後鳥羽院 | |
- kami: 風そよぐ楢の小川の夕暮は | |
shimo: 御禊ぞ夏のしるしなりける | |
yomite: 従二位家隆 |
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
<div id="archivePage"> | |
</div> | |
<!-- for archive page --> | |
<script> | |
<!-- | |
jQuery(function(){ | |
// 挿入対象DIVを取得 | |
// なければ終了 |
OlderNewer