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
from gi.repository import Groonga | |
Groonga.init() | |
context = Groonga.Context() | |
del context | |
Groonga.fin() |
This file has been truncated, but you can view the full 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
CPU: | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 58 | |
model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz | |
stepping : 9 | |
cpu MHz : 3392.937 | |
cache size : 6144 KB | |
fpu : yes |
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
FLUSH STATUS; | |
SET NAMES UTF8; | |
CREATE TABLE logs( | |
title TEXT, | |
content LONGTEXT, | |
a TINYINT, | |
b DATETIME, | |
c INT, | |
d DOUBLE, |
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 アクセシビリティ"); |
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
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
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
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
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
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 |