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 Motsu Tabetai | |
// @namespace http://ikenie.com/ | |
// @include * | |
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46 | |
// @require http://gist.github.com/raw/34615/04333b7e307eb029462680e4f4cf961f72f4324c | |
// ==/UserScript== | |
(function() { | |
var DATABASE_URL = 'http://wedata.net/databases/Motsu/items.json'; |
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
// 2008-12-23 | |
// wedata.net and swdyh were down. | |
// urls below are autopagerize siteinfo backups for temporary use. | |
var SITEINFO_IMPORT_URLS_FOR_NEWYEARHOLIDAYS = [ | |
'http://ss-o.net/databases/AutoPagerize/items.json', | |
'http://utatane.appjet.net/databases/AutoPagerize/items.json' | |
]; |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'uri' | |
require 'net/http' | |
require 'digest/md5' | |
require 'rexml/document' | |
require 'extlib' | |
require 'yaml' |
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
config = Mash.new YAML.load(File.open('config.yaml')) | |
en = WebService::EchoNest.new config[:api_key] | |
response = en.get_beats :id => "music://id.echonest.com/~/TR/TRQTAUB1204D807B19" | |
p response | |
p "\n\n\n" | |
beat8s = [] | |
prev = response[:beats][0] | |
p prev | |
response[:beats].each_with_index do |beat, i| | |
if i % 8 == 0 |
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
class Array | |
def shuffle! | |
size.downto(1) { |n| push delete_at(rand(n)) } | |
self | |
end | |
end | |
class Command | |
def initialize(cmd) | |
@cmd = cmd |
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
2009-04-21 [memo] | |
http://search.cpan.org/dist/Lingua-JA-Romanize-Japanese/ | |
http://search.cpan.org/dist/Text-MeCab/ | |
http://i-am.web777.net/2007/02/mecabruby.html | |
http://d.hatena.ne.jp/nyaago69/20090405/1238936291 | |
http://search.cpan.org/~ovid/Class-Sniff-0.08/lib/Class/Sniff.pm | |
json |
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
ffmpeg関連 | |
http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/ | |
http://mycometg3.blog.so-net.ne.jp/2009-02-16 | |
http://blogs.dion.ne.jp/kimiwo/archives/2170015.html |
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
Cajita ref_send.jsでググる | |
caja関連らしい | |
http://code.google.com/p/google-caja/source/browse/trunk/experimental/flash/src/org/waterken/ref_send.js?spec=svn3510&r=3510 | |
promise proposal | |
via ssjs-MLの遅延何とかスレ |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'scissor' | |
require 'scissor-video' | |
require "scissor/echonest" | |
require 'yaml' | |
config = YAML.load(File.open('config.yaml')) | |
Scissor.workspace = './workspace' + $$.to_s | |
Scissor.echonest_api_key = config['api_key'] |
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
emacsでandroid | |
0. SDKいれてAVDも作っておく | |
android create avd -n <name> -t <targetID> [-<option> <value>] ... | |
0. http://riddell.us/tutorial/android/android.htmlのelisp入れる | |
1. emulator起動 | |
M-x android-start-emulatorかemulatorコマンド | |
2. 新規プロジェクト作成 | |
android create project --target <targetID> --path /path/hoge --activity MyProgram --package com.example.hoge | |
target: android list targetsででてくるものから選択 |