realforce rc1 日本語配列
- product_id: 794
- vendor_id: 2131
| キー | key_code | 表記 |
|---|---|---|
| スペースキー左横 | japanese_pc_nfer | PCキーボードの無変換キー |
| スペースキー右横 | japanese_pc_xfer | PCキーボードの変換キー |
realforce rc1 日本語配列
| キー | key_code | 表記 |
|---|---|---|
| スペースキー左横 | japanese_pc_nfer | PCキーボードの無変換キー |
| スペースキー右横 | japanese_pc_xfer | PCキーボードの変換キー |
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| # Activate the gem you are reporting the issue against. |
| # 医科 | |
| name = [Gimei.last.kanji, Gimei.last.hiragana, Gimei.last.katakana].sample + %w(内科 眼科 整形外科 皮膚科 クリニック 病院).sample | |
| name + ["", "クリニック"].sample unless name.end_with?("クリニック", "病院") | |
| # 歯科 | |
| name = [Gimei.last.kanji, Gimei.last.hiragana, Gimei.last.katakana].sample + %w(歯科 矯正歯科 歯科医院 歯科クリニック デンタルクリニック デンタルケアクリニック).sample | |
| # 調剤 | |
| # いまいち | |
| name = [Gimei.first.hiragana, Gimei.first.katakana, Gimei.town.kanji, Gimei.town.hiragana, Gimei.town.katakana].sample + "薬局" |
| class A | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| field :hoge, type: String | |
| has_and_belongs_to_many :bs | |
| end | |
| class B | |
| include Mongoid::Document |
| #!/bin/bash | |
| JMARECEIPT_ENV="/etc/jma-receipt/jma-receipt.env" | |
| if [ ! -f ${JMARECEIPT_ENV} ]; then | |
| echo "${JMARECEIPT_ENV} does not found." | |
| exit 1 | |
| fi | |
| . $JMARECEIPT_ENV | |
| #-------------------------------------------------------------------------- |
| class A | |
| include Mongoid::Document | |
| embeds_many :items | |
| end | |
| class Item | |
| include Mongoid::Document | |
| embedded_in :a | |
| field :text, type: String | |
| end |
| class A | |
| include Mongoid::Document | |
| field :hoge, type: String | |
| belongs_to :b | |
| before_validation do | |
| p 'before_validation' | |
| end |
| class A | |
| include Mongoid::Document | |
| field :hoge, type: String | |
| before_validation do | |
| p 'before_validation' | |
| end | |
| before_validation on: :create do | |
| p 'before_validation on create' |
| PUT /test-index/ | |
| { | |
| "settings": { | |
| "index":{ | |
| "analysis": { | |
| "filter": { | |
| "pos_filter": { | |
| "type": "kuromoji_part_of_speech", | |
| "stoptags": [ | |
| "助詞-格助詞-一般", |
| # | |
| # 0.90.3でmapping定義 | |
| # | |
| $ elasticsearch -v | |
| Version: 0.90.3, ... | |
| # jsonのpropertiesの親のkeyをhogeにしてみる | |
| $ cat article.json | |
| { | |
| hoge : { |