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
./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext -- "../../../ruby/test/runner.rb" --ruby="./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --" | |
c:/cygwin/home/kou/work/ruby/ruby/test/csv/test_features.rb: cannot load such file -- zlib | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_event.rb skipped(ActiveX Data Object Library not found.) | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_variant_outarg.rb skipped(ActiveX Data Object Library not found.) | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_word.rb skipped(Microsoft Word not found.) | |
c:/cygwin/home/kou/work/ruby/ruby/test/open-uri/test_open-uri.rb: cannot load such file -- zlib | |
c:/cygwin/home/kou/work/ruby/ruby/test/rake/test_package_task.rb: cannot load such file -- zlib |
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
ruby 1.9.3dev (2011-05-14) [x64-mingw32] | |
./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext -- "../../../ruby/test/runner.rb" --ruby="./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --" | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_event.rb skipped(ActiveX Data Object Library not found.) | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_variant_outarg.rb skipped(ActiveX Data Object Library not found.) | |
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_word.rb skipped(Microsoft Word not found.) | |
Run options: "--ruby=./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --" |
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 "poppler" | |
output_width = 378 | |
output_height = 550 | |
Cairo::PDFSurface.new("output.pdf", output_width, output_height) do |surface| | |
Cairo::Context.new(surface) do |context| | |
ARGV.each do |file| | |
pdf = Poppler::Document.new(file) |
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
mysql> CREATE TABLE ids (id BIGINT UNSIGNED) ENGINE=mroonga DEFAULT CHARSET=utf8; | |
mysql> INSERT INTO ids VALUES(1); | |
mysql> SELECT * FROM ids; | |
id | |
1 | |
mysql> DELETE FROM ids where id = 1; | |
mysql> SELECT * FROM ids; | |
id |
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
include_theme("default") | |
proc_name = "video" | |
$showing = false | |
$pid = nil | |
match(SlideElement) do |slides| | |
slides.delete_post_draw_proc_by_name(proc_name) | |
slides.add_post_draw_proc(proc_name) do |slide, canvas, x, y, w, h, simulation| |
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
set_background("black") | |
match(SlideElement) do |slides| | |
slides.each do |slide| | |
raw_page = slide.instance_variable_get(:@page).instance_variable_get(:@page) | |
width, height = raw_page.size | |
width_ratio = canvas.width.to_f / width.to_f | |
height_ratio = canvas.height.to_f / height.to_f | |
unless width_ratio == height_ratio | |
if width_ratio > height_ratio | |
width_margin = canvas.width - (width * height_ratio) |
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
Index: envutil.rb | |
=================================================================== | |
--- envutil.rb (revision 48187) | |
+++ envutil.rb (working copy) | |
@@ -400,8 +400,11 @@ | |
def assert_warning(pat, msg = nil) | |
stderr = EnvUtil.verbose_warning { yield } | |
- msg = message(msg) {diff pat, stderr} | |
- assert(pat === stderr, msg) |
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
DROP DATABASE IF EXISTS mroonga; | |
CREATE DATABASE mroonga; | |
USE mroonga; | |
SET NAMES utf8mb4; | |
CREATE TABLE entries ( | |
id INT NOT NULL PRIMARY KEY, | |
text1 TEXT NOT NULL, | |
text2 TEXT NOT NULL, |
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
CREATE TABLE articles ( | |
blog_id int, | |
article_id int, | |
unique key (blog_id, article_id) | |
) engine = mroonga default charset = utf8; | |
INSERT INTO articles VALUES (1, 100); | |
UPDATE articles SET blog_id = 2; | |
SELECT * FROM articles; |
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
SHOW CREATE TABLE ${テーブル名}; | |
SELECT mroonga_command("normalizer_list"); | |
SELECT mroonga_command("table_list"); | |
SELECT mroonga_command("normalize NormalizerMySQLUnicodeCIExceptKanaCIKanaWithVoicedSoundMark アクセシビリティ"); |
OlderNewer