This file contains 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
>ruby minsample.rb | |
DL is deprecated, please use Fiddle | |
DXRubyWS/lib/core.rb @ line 1 | |
13 WS::WSContainer#draw: | |
111: def draw | |
112: Sprite.draw(@childlen) | |
=> 113: super rescue binding.pry | |
114: end |
This file contains 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
N=gets.to_i | |
b=[M=N*N] | |
r=[-1,-N,d=1,N]*k=M/2 | |
1.upto(M){|i|b[k]="%#{M.to_s.size}d#{(k+1)%N>0?" ":$/}"%i | |
b[k+r[d+1]]||d+=1 | |
k+=r[d]} | |
puts b*"" |
This file contains 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
C:\Users\sasa\Documents\GitHub\narou>narou s -l | |
[Local Variables] | |
download.interval=0.0 | |
convert.inspect=false | |
convert.no-open=true | |
device=kindle | |
default_args.list=-rl | |
[Global Variables] | |
difftool='C:\Program Files\WinMerge\WinMergeU.exe' |
This file contains 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 -*- | |
# | |
# 対象小説情報 | |
# タイトル: Re:ゼロから始める異世界生活 | |
# 作者: 鼠色猫 | |
# URL: http://ncode.syosetu.com/n2267be/ | |
# | |
converter "Re:ゼロから始める異世界生活" do | |
def before(io, text_type) |
This file contains 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
FOLDER ="c:\\temp\\" | |
PATTERN = "abc.*" | |
NEW_EXTENTION = ".foo" | |
FIXED_STRING = "varvar" | |
Dir.glob(FOLDER + PATTERN) do |path| | |
new_filename = File.join(File.dirname(path), File.basename(path, ".*") + NEW_EXTENTION) | |
contents = File.read(new_filename) rescue "\n" | |
File.write(new_filename, FIXED_STRING + contents) | |
end |
This file contains 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 amazon_exists_checker | |
// @namespace amazon_exists_checker | |
// @description Amazon ですでに所蔵している本かどうかチェック | |
// @include http://www.amazon.co.jp/* | |
// @version 1 | |
// @grant GM_xmlhttpRequest | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// ==/UserScript== |
This file contains 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 jbook_exists_checker | |
// @namespace jbook_exists_checker | |
// @description JBOOK ですでに所蔵している本かどうかチェック | |
// @include http://www.jbook.co.jp/p/p.aspx* | |
// @version 1 | |
// @grant GM_xmlhttpRequest | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// ==/UserScript== |
This file contains 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 -*- | |
# | |
# 対象小説情報 | |
# タイトル: 異世界迷宮で奴隷ハーレムを | |
# 作者: 蘇我捨恥 | |
# URL: http://ncode.syosetu.com/n4259s/ | |
# | |
converter "異世界迷宮で奴隷ハーレムを" do | |
def before(io, text_type) |
This file contains 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
# -*- Encoding: UTF-8 -*- | |
# | |
# 対象小説情報 | |
# タイトル: 無職転生 - 異世界行ったら本気だす - | |
# 作者: 理不尽な孫の手 | |
# URL: http://ncode.syosetu.com/n9669bk/ | |
# | |
converter "無職転生 - 異世界行ったら本気だす -" do | |
def before(io, type) |
This file contains 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
# -*- Encoding: Windows-31J -*- | |
require "stringio" | |
class Converter < BasicConverter | |
def before_convert(io) | |
data = io.read | |
data.gsub!("\n\n", "\n") | |
StringIO.new(data) | |
end |