This file contains 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
#!perl | |
use strict; | |
use warnings; | |
use Readonly; | |
use Net::Twitter::Lite; | |
Readonly my $following_count_limit => 10; | |
my $consumer_key = 'YOUR_CONSUMER_KEY'; |
This file contains 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
// ==UserScript== | |
// @name Slider-Interface-of-Hatena-Bookmark's-Threshold | |
// @namespace http://d.hatena.ne.jp/Cside | |
// @include http://b.hatena.ne.jp/* | |
// ==/UserScript== | |
function inputAndCount(mode) { | |
var threshold; | |
var loc = location.href; |
This file contains 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
(require 'cl) | |
(defun toggle-delete-trailing-whitespace-setting () | |
(interactive) | |
(cond ((find 'delete-trailing-whitespace before-save-hook) | |
(remove-hook 'before-save-hook 'delete-trailing-whitespace)) | |
( | |
(add-hook 'before-save-hook 'delete-trailing-whitespace))) | |
) |
This file contains 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
#!perl | |
use strict; | |
use warnings; | |
use DateTime; | |
use DateTime::TimeZone; | |
for my $timezone (DateTime::TimeZone->all_names) { | |
warn sprintf('%20s / %s', $timezone, DateTime->now(time_zone => $timezone)->strftime('%z')); | |
} |
This file contains 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
#!perl | |
use warnings; | |
use strict; | |
use LWP::UserAgent; | |
my $title = 'エントリタイトル'; | |
my $excerpt = 'エントリ要約ですよ'; | |
my $url = 'http://d.hatena.ne.jp/shibaTest/20101022/p1'; | |
my $blog_name = 'Dive into the Tech World!'; |
This file contains 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
#!perl | |
use strict; | |
use warnings; | |
use XML::Feed; | |
my $url = 'http://f.hatena.ne.jp/shiba_yu36/rss'; | |
my $open_search = "http://a9.com/-/spec/opensearchrss/1.0/"; | |
my $hatena = "http://www.hatena.ne.jp/info/xmlns#"; |
This file contains 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
use strict; | |
use warnings; | |
use String::Random; | |
use DateTime; | |
use URI::Escape; | |
use Digest::HMAC_SHA1 qw(hmac_sha1); | |
use MIME::Base64; | |
use LWP::UserAgent; |
This file contains 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
use strict; | |
use warnings; | |
use OAuth::Lite; | |
use OAuth::Lite::Consumer; | |
my $ua = LWP::UserAgent->new; | |
my $request_url = 'http://gdd-2010-quiz-japan.appspot.com/oauth/5c2cac6d69ddbc14c5b30bcb'; |
This file contains 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
#!/bin/sh | |
ssh-agent | grep -v echo > "${HOME}/.ssh/agent-env" | |
. "${HOME}/.ssh/agent-env" | |
ssh-add | |
echo "please type:" | |
echo ". ~/.ssh/agent-env" |
This file contains 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
// ==UserScript== | |
// @name expand_fotolife_notation | |
// @description はてなダイアリー編集中にfotolife記法を展開する | |
// @namespace http://shiba-yu36.net/ | |
// @include http://d.hatena.ne.jp/* | |
// ==/UserScript== | |
(function() { | |
var extention_map = { |