View item_template.txt
<table class=\"var_table item\"> <tr><td colspan=\"4\"><span class=\"smaller\">Lv:1 ID:<span class=\"selectedClass\">640072</span> Cls:<span class=\"selectedClass\">food_Popolion</span> Group:Drug <a href=\"#\" onclick=\"onButtonClick('item' , 640072);\">詳細(材料)</a> </span></td></tr><tr><td style=\"width:80px;\"><div class=\"ItemGradebg1\"><img src=\"./gfx/icon_item_meat_02.png\" style=\"position:relative;left:20px;top:5px;float:left;width:40px;height:40px;\" alt=\"ポポリオンの肉\"></div></td><td style=\"width:30%;\"> <div class=\"selectedClass ItemGrade\">ポポリオンの肉</div><div class=\"selectedClass ItemGrade\">포포리온 고기</div> </td><td style=\"width:30%;\"> <div class=\"selectedClass \">CoolDown 15 秒</div> <div class=\"selectedClass \">CD種類 HPPOTION</div> </td><td style=\"width:30%;\"> <div class=\"selectedClass \">種類 その他</div> </td></tr><tr><td colspan=\"2\"> <div class=\"selectedClass smaller \">HPを+80~100回復させてくれます。簡単に入手できる肉です。生で食べても美味しいです。右クリックで使用します。</div> </td><td colspan=\"2\"> <a href=\"#\" onclick=\"onButtonClic
View parse_tosken.rb
#coding:utf-8
require "nokogiri"
require "kconv"
require 'json'
Dir.chdir File.dirname __FILE__
#
#
# tabledata = data_json内の <table~</table> ,,, ths_ary == tos neetのデータ
# db_ary == json_data
View html_replace_out_json.rb
#coding:utf-8
require "nokogiri"
require "kconv"
require 'json'
Dir.chdir File.dirname __FILE__
tmp =[]
count=0
View .rb
#
# 精錬値と成功率 
class Success_rate
attr_accessor :rate , # 成功率Array
:cost , # 精錬費用Array
:pote , # ポテンシャル
:v, # 最初の精錬値
:arrival_value, # 目標の精錬値
:arrival_pote, # 目標のポテンシャル減少
:level , # 装備レベル
View nokori_time.rb
def nokori_time a
t = Time.new
b = a - t
b = (b/(60*60*24)).to_i
a -= 60 * 60 * t.strftime("%H").to_i
a -= 60 * t.strftime("%M").to_i
a -= t.strftime("%S").to_i
a.strftime("#{b}-%01H-%01M-%01S")
end
View osdetect.bat
@ECHO off
VER | find "95" > nul
IF not errorlevel 1 GOTO Win_95
VER | find "98" > nul
IF not errorlevel 1 GOTO Win_98
VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT
View sele.rb
require 'selenium-webdriver'
agent = Selenium::WebDriver.for :firefox
agent.get "http://motenai.orz.hm/up/"
agent.find_element(:name => "file[]").send_keys "C:\\0.jpg"
agent.find_element(:name => "pass").send_keys "1234"
f = agent.find_element :name => "file[]"
f.submit
View mod_th_kaiseki.rb
#coding : utf-8
#Dir.chdir File.dirname($0)
require "mechanize"
require "kconv"
class Resu
attr_accessor :num,:name,:mail,:message,:time,:id,
:anka,:link,:img,
:wacchoi,:name_body # no using
View ----*.rb
s = "----*".split(//)
b = []
s.size.times do
b << s.join.reverse[0..-2] + s.join + "\n"
s.rotate!
end
puts b[0..-2]
puts b.reverse
View akm.rb
# ループ
def func a , b
stack = []
loop do
if a == 0
b += 1
if stack.empty?
return b
else