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
/* | |
The MIT License | |
Copyright (c) 2009 sonota <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
// ==UserScript== | |
// @name detect-patterns | |
// @namespace anbt | |
// @include * | |
// ==/UserScript== | |
(function(){ | |
if (window != unsafeWindow.top) { return; } | |
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 -*- | |
require 'yapra/plugin/mechanize_base' | |
module Yapra::Plugin::Feed | |
# description: | |
# | |
# Extract as feed from a web page using hAtom or user defined XPath. | |
# |
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 -*- | |
#require 'pp' | |
require 'open-uri' | |
require 'time' | |
require 'rss' | |
require 'rubygems' | |
require 'yapra/plugin/mechanize_base' | |
module LDRize |
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
(defun asciip (char-code) | |
(and (<= 32 char-code) | |
(<= char-code 126))) | |
;; (asciip ?a) ; => t | |
;; (asciip ?あ) ; => nil | |
;; see also: japan-util.el | |
;; char-code のリスト |
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 -*- | |
require "pp" | |
require "rubygems" | |
require "mofo" | |
list_src = <<EOB | |
株式会社インフィニットループ技術ブログ - 札幌のソフト開発会社インフィニットループのスタッフが送る技術ブログ | |
http://www.infiniteloop.co.jp/blog/ | |
BPS株式会社 開発ブログ Beyond Perspective Solutions LTD. |
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
// ==UserScript== | |
// @name twitter-dt | |
// @namespace anbt | |
// @include http://twitter.com/*/status/* | |
// @include http://twitter.com/*/statuses/* | |
// @include https://twitter.com/*/status/* | |
// @include https://twitter.com/*/statuses/* | |
// ==/UserScript== | |
/* |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; OS判別 | |
;; .emacs で OS の判定を関数化しよう - msshの日記 | |
;; http://d.hatena.ne.jp/mssh/20081208/1228742294 | |
;; を少し修正 | |
(defvar os-type nil) | |
(setq os-type (cond |
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
// ==UserScript== | |
// @name hatebu-more | |
// @namespace anbt | |
// @include http://b.hatena.ne.jp/entry/* | |
// @exclude http://b.hatena.ne.jp/entry?mode=more&url=* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js | |
// ==/UserScript== | |
var moreURL = "http://b.hatena.ne.jp" + $("#more-link > a").attr("href"); |
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
(require 'imcap) | |
(setq imcap-file-name-format "%Y-%m-%d-%H%M%S.png") | |
(setq imcap-directory "imcap") | |
(setq imcap-capture-delay 5) | |
(defun imcap-capture-command-format () | |
(concat " sleep " | |
(format "%s" imcap-capture-delay) | |
" ; " |
OlderNewer