Skip to content

Instantly share code, notes, and snippets.

View kazuhisa's full-sized avatar

Yamamoto Kazuhisa kazuhisa

View GitHub Profile
@kazuhisa
kazuhisa / Gemfile
Last active December 11, 2015 23:48
Railsでarproxy + fluent-loggerを使ってSQLのログを記録してみた
# add
gem "arproxy"
gem "fluent-logger"
+--------------------------------------------------+
|Name | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
+--------------------------------------------------+
|Yui |x |9 /|2 3|2 3|2 3|2 3|2 3|2 4|2 4|2 / X|
+--------------------------------------------------+
|Mio |x |9 /|2 3|2 3|2 3|2 3|2 3|2 4|2 4|2 / X|
+--------------------------------------------------+
|Ritsu |x |9 /|2 3|2 3|2 3|2 3|2 3|2 4|2 4|2 / X|
+--------------------------------------------------+
|Azusa |x |9 /|2 3|2 3|2 3|2 3|2 3|2 4|2 4|2 / X|
$("input.input_search").live("focus",function(){
$(this).attr({"MaxLength":2000});
});
require './data_source'
require './boring'
computer = Computer.new(1,DS.new)
puts computer.mouse
puts computer.keyboard
puts computer.cpu
class DS
def get_mouse_info(id)
"Dual Optical"
end
def get_mouse_price(id)
40
end
def get_keyboard_info(id)