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
#! ruby | |
# -*- coding: utf-8 -*- | |
# CONFIG | |
IMAP_USER='' | |
IMAP_PASS='' | |
# MAIN | |
require 'net/imap' | |
require 'parsedate' | |
FROMS = %w{ |
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
-- Readme | |
-- Tree.app1.6.2でOPML1.0でエクスポートするAppleScript. | |
-- [注意] GUI Scriptingでゴリ押しなのでTree.appのバージョンが違うと誤作動する可能性がある. | |
-- [注意] 同名の.opmlファイルが存在する場合は上書きされる. | |
-- References | |
-- AppleScript Help - Apple - http://docs.info.apple.com/help/guide.html?path=AppleScript/2.1/jp/ | |
-- AppleScriptの構造を上手に調べる - http://allabout.co.jp/gm/gc/80938/3/ | |
tell application "Tree" | |
activate |
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
javascript:location.href='http://okwave.jp/print/qa/q' + location.pathname.match(/\d+/) +'.html' |
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 | |
# Example: $ cat example.txt | this_script | |
# This script works only for ruby 1.9.x | |
ruby1.9 -e 'while l=gets;puts "#{$stdin.lineno} #{l}" if l !~ /\A\s*%/&&!l.each_char.select{|c|c.bytesize!=1}.empty?;end' |
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 | |
# == References | |
# | |
# * OSXでMP4動画からAAC音声抽出 | |
# http://d.hatena.ne.jp/ikki_j/20080304/1204629353 | |
# > H.264+AACなMP4動画から再コンパイルなしでAAC音声のみを抽出する方法。 | |
# | |
# * EvalVid - A Video Quality Evaluation Tool-set Pre-compiled binaries (static) | |
# http://www2.tkn.tu-berlin.de/research/evalvid/fw.html#bin |
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
--- ipfw3/dummynet2/Makefile.orig 2012-01-18 02:51:29.000000000 +0900 | |
+++ ipfw3/dummynet2/Makefile 2012-01-18 02:51:42.000000000 +0900 | |
@@ -55,8 +55,8 @@ | |
ipfw-cflags += -D_BSD_SOURCE | |
ipfw-cflags += -DKERNEL_MODULE # build linux kernel module | |
# the two header trees for empty and override files | |
-ipfw-cflags += -I $(M)/include_e | |
-ipfw-cflags += -I $(M)/include | |
+ipfw-cflags += -I$(M)/include_e | |
+ipfw-cflags += -I$(M)/include |
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
※0オリジンか1オリジンという意味では等価なコードではない。 | |
// written in Java | |
for(int k = 0, k < K, k++) | |
for(int j = 0, j < J, j++) | |
for(int i = 0, i < I, i++) | |
execute(i, j, k); | |
# written in Ruby |
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
#!/opt/local/bin/ruby1.9 | |
# encoding: utf-8 | |
# 「Judy先生の英語科学論文の書き方」[1]付属のCD-ROMのデータを | |
# Dictionary.app用のXMLデータに変換するスクリプト。 | |
# Usage :: ruby1.9 judy-to-dictionary.rb > MyDictionary.xml && make && make install | |
# | |
# Author :: Masayuki Higashino | |
# | |
# References :: |
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
#! ruby | |
# -*- coding: utf-8 -*- | |
# OPAC所蔵確認スクリプト | |
# Usage :: $ cat isbn-keyword-list.txt | ruby opac.rb | |
# Author :: Masayuki Higashino | |
# Note :: 本スクリプトは某サイト専用です。OPACのインタフェースはWebサイ | |
# トによって異なるので某サイト以外では使えません。 | |
# | |
# CONFIG |
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
javascript:location.href='http://nicoviewer.net/'+location.href.match(/sm\d+/) |
OlderNewer