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 -*- | |
# http://rolz1.spaces.live.com/blog/cns!44B7739809D018D7!2807.entry | |
class SinWave | |
attr_accessor :f0, :fs, :a, :n_max | |
def initialize(args) | |
@f0 = args[:f0] | |
@fs = args[:fs] | |
@a = args[:a] | |
@n_max = args[:n_max] |
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
// 2010-05-08 koyachi | |
// Frequency selected sound energy algorithm 1 | |
// http://www.gamedev.net/reference/programming/features/beatdetection/ | |
package { | |
import flash.display.*; | |
import flash.text.*; | |
import flash.net.*; | |
import flash.media.*; | |
import flash.events.*; | |
import flash.utils.*; |
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 | |
# 2010-01-11 koyachi | |
require 'rubygems' | |
require 'scissor' | |
require 'yaml' | |
# yaml generated by http://gist.github.com/268614#file_dump.rb | |
#$song = 'Lily Allen - LDN Acapella.mp3' | |
#$song = 'polestar1-1.mp3' | |
$song = 'Tom Browne - Funkin\' for Jamaica .mp3' |
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
// http://assets1.github.com/javascripts/bundle_github.js のグラフ書いてる処理抜粋 | |
$(function(){ | |
$(".graph .bars").each(function(){ | |
var a = this; | |
if ($(a).is(":visible")) { | |
var b = function(c){ new ParticipationGraph(a,c) }, | |
d = $(this).attr("rel"); | |
$.get(d,null,b,"text") | |
} |
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 'fileutils' | |
require 'webrick' | |
def bundle(your_gem_dir=nil) | |
your_gem_dir ||='./gems' | |
FileUtils.mkdir_p File.expand_path(your_gem_dir) | |
Gem.path.map{|path| Dir.glob(path + '/cache/*.gem')}.flatten.map{|path| FileUtils.cp(path, "#{your_gem_dir}/#{path.split('/')[-1]}")} |
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
mencoder 465d1734e41c86f74f13d8a006efbcd4_367.avi 465d1734e41c86f74f13d8a006efbcd4_87.avi 465d1734e41c86f74f13d8a006efbcd4_172.avi 465d1734e41c86f74f13d8a006efbcd4_302.avi 465d1734e41c86f74f13d8a006efbcd4_139.avi 465d1734e41c86f74f13d8a006efbcd4_41.avi 465d1734e41c86f74f13d8a006efbcd4_73.avi 465d1734e41c86f74f13d8a006efbcd4_131.avi 465d1734e41c86f74f13d8a006efbcd4_423.avi 465d1734e41c86f74f13d8a006efbcd4_91.avi 465d1734e41c86f74f13d8a006efbcd4_296.avi 465d1734e41c86f74f13d8a006efbcd4_310.avi 465d1734e41c86f74f13d8a006efbcd4_49.avi 465d1734e41c86f74f13d8a006efbcd4_190.avi 465d1734e41c86f74f13d8a006efbcd4_210.avi 465d1734e41c86f74f13d8a006efbcd4_222.avi 465d1734e41c86f74f13d8a006efbcd4_319.avi 465d1734e41c86f74f13d8a006efbcd4_245.avi 465d1734e41c86f74f13d8a006efbcd4_145.avi 465d1734e41c86f74f13d8a006efbcd4_147.avi 465d1734e41c86f74f13d8a006efbcd4_336.avi 465d1734e41c86f74f13d8a006efbcd4_130.avi 465d1734e41c86f74f13d8a006efbcd4_33.avi 465d1734e41c86f74f13d8a006efbcd4_266.avi 465d1734e41c86f74f13d8a006efbcd4_11.a |
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
[koyachi@sp1200] ~/code/ruby/scissor on refactor-external-command(802ee7e) | |
! % git diff | |
diff --git a/spec/command_spec.rb b/spec/command_spec.rb | |
index c6be291..7e46829 100644 | |
--- a/spec/command_spec.rb | |
+++ b/spec/command_spec.rb | |
@@ -26,7 +26,7 @@ describe Scissor::Command do | |
describe "#_run_command" do | |
before do |
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
diff -r -u ./lib/q4m/worker.rb ../xxx/vendor/gems/ruby/1.8/dirs/q4m/lib/q4m/worker.rb | |
--- ./lib/q4m/worker.rb 2009-12-21 10:56:56.000000000 +0900 | |
+++ ../xxx/vendor/gems/ruby/1.8/dirs/q4m/lib/q4m/worker.rb 2010-01-21 16:05:08.000000000 +0900 | |
@@ -7,5 +7,6 @@ | |
end | |
def work(job, queue=nil) | |
+ super job, queue | |
end | |
end |
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
https://clubt.jp/pl/api/layout/preview?p=4bb29c35ed0a156a1191254cf7796541_tmp_.jpg&preview=1&font[]=mplus-1c-black&color[]=000000&word[]=%20__%20_________%20_%20%20__&size[]=15&x[]=0&y[]=0&font[]=mplus-1c-black&color[]=26821F&word[]=%2F%20%2F%2F%20%2F%20__%2F%20_%20\%20|%2F%20%2F&size[]=17&x[]=0&y[]=44&font[]=mplus-1c-black&color[]=61F002&word[]=\_%2C_%2F\__%2F_%2F%2F_%2F___%2F%20&size[]=14&x[]=0&y[]=88&thumb_size=m | |
__ _________ _ __ | |
/ // / __/ _ \ |/ / | |
\_,_/\__/_//_/___/ | |
buy best designer replica t-shirts. low prices. | |
http://clubt.jp/myshop/S0000036902.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
diff -r -u ./lib/q4m/client.rb ../xxx/vendor/gems/ruby/1.8/dirs/q4m/lib/q4m/client.rb | |
--- ./lib/q4m/client.rb 2009-12-22 16:53:28.000000000 +0900 | |
+++ ../xxx/vendor/gems/ruby/1.8/dirs/q4m/lib/q4m/client.rb 2010-01-19 18:55:46.000000000 +0900 | |
@@ -3,6 +3,7 @@ | |
class Q4M::Client | |
def self.destroy(_dbh, _owner_mode) | |
proc { | |
+ p "[Q4M::Client.destroy] #{_dbh.inspect}, #{_owner_mode}" | |
if _dbh | |
_dbh.do "SELECT queue_abort();" if _owner_mode == 1 |