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 'rubygems' | |
require 'scissor' | |
require 'pit' | |
# = ABSTRACT | |
# extract solamimi text from mp3 file using scissor, ffmpeg and julius | |
# = USAGE | |
# ruby solamimi.rb /path/to/target.mp3 start_time length | |
# = EXAMPLE | |
# ruby solamimi.rb ~/Music/iTunes/iTunes\ Music/The\ Beatles/1962-1966\ \[Disc\ 1\]/1-02\ Please\ Please\ Me.mp3 ~/20100103/dictation-kit-v4.0/fast.jconf 1:02.22 2.3 |
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
文字を読みながら、そこに表現されてある音響が、いつまでも耳にこびりついて、離れないことがあるだらう。オセロオであつたか、ほかの芝居であつたか、しらべてみれば、すぐ判るが、いまは、もの憂く、とにかくシエクスピア劇のひとつであることは間違ひない、とだけ言つて置いて、その芝居の人殺しのシイン、寝室でひそかに女をしめ殺して、ヒロオも、われも、瞬時、ほつと重くるしい溜息。額の油汗拭はむと、ぴくとわが硬直の指うごかした折、とん、とん、部屋の外から誰やら、ドアをノツクする。ヒロオは、恐怖のあまり飛びあがつた。ノツクは、無心に、つづけられる。とん、とん、とん、とん、ヒロオは、その場で気が狂つたか、どうか、私はその後の筋書を忘れてしまつた。 |
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
# USAGE: ruby itunes_delete_redundant_files.rb /path/to/iTunes\ Media | |
require 'md5' | |
class PlayList | |
def initialize(dir) | |
@file_list = Dir::glob(dir + '/**/*') | |
@file_list.reject! {|f| !f.match(/\.mp3$/) } | |
end | |
def uniq! |
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 Fast Look up Kihwanujish | |
// @namespace http://kihwanujish.jottit.com/ | |
// @include http://* | |
// ==/UserScript== | |
// based on scripts bellow | |
// - "Fast Look up Alc" by cho45 (http://userscripts.org/scripts/show/12024) | |
// - "Google Reader Full Feed" by mattn (http://coderepos.org/share/wiki/GoogleReaderFullFeed) | |
(function () { |
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
マイクロソフト | |
COFFEE「舞黒想風人」 | |
インターネット | |
歌声喫茶「伊多音都」 | |
さむい | |
談話室「再夢伊」 | |
はらへった |
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
(function(){ | |
if(window.storyGen && window.storyGen.data) { | |
window.storyGen.generateStory(); | |
return; | |
} | |
StoryGen = {} | |
StoryGen.Util = function() { | |
return { | |
rand : function(num) { | |
return Math.floor(Math.random() * num); |
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 Trac Sortable Ticket | |
// @namespace http://d.hatena.ne.jp/tily/ | |
// @include https:/*/report/* | |
// @include http://*/report/* | |
// @require http://code.jquery.com/jquery-1.3.2.js | |
// @require http://tablednd.googlecode.com/svn/trunk/stable/jquery.tablednd.js | |
// ==/UserScript== | |
(function() { |
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 'open-uri' | |
require 'rubygems' | |
require 'nokogiri' | |
while(line = gets) | |
next if !match = line.match(/\d+/) | |
status_id = match[0] | |
doc = Nokogiri(open("http://api.twitter.com/status/show/#{status_id}.xml")) | |
status = doc.search('/html/body/status/text/text()').to_s.gsub(/\&#(\d+);/){[$1.to_i].pack('U')} | |
username = doc.search('/html/body/status/user/screen_name/text()') |