- declaration は 「宣言」 と訳しているが、「定義」 の方が適しているような気がしなくもない。
- 「インスタンス」 と 「オブジェクト」 という言葉を使うことがあるが、本文書中ではどちらも同じ意味で使用している。
- 「
String
オブジェクト」 という表現は、「String
クラスのインスタンス」 を意味している。 (Java に限らず一般的な表現だと思う。)
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
require 'pg' | |
# 接続先 DB の情報 | |
DB_S_ARRAY = [ 'localhost', 5432, '', '', 'db_name', 'user_name', 'password' ] | |
# テーブル table_name に対して先にロックを獲得するスレッド | |
t1 = Thread.new do | |
dbconn = PGconn.connect( *DB_S_ARRAY ) | |
dbconn.transaction do | |
puts 'locking table... (t1)' |
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
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb | |
index 0d36c07..d6e88e5 100644 | |
--- a/lib/webrick/httpresponse.rb | |
+++ b/lib/webrick/httpresponse.rb | |
@@ -330,13 +330,18 @@ module WEBrick | |
if @request_method == "HEAD" | |
# do nothing | |
elsif chunked? | |
- while buf = @body.read(@buffer_size) | |
- next if buf.empty? |
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
diff --git a/web/doc/ja/getting-started.markdown b/web/doc/ja/getting-started.markdown | |
index 9412036..c9f6de6 100644 | |
--- a/web/doc/ja/getting-started.markdown | |
+++ b/web/doc/ja/getting-started.markdown | |
@@ -1,18 +1,17 @@ | |
--- | |
layout: doc_ja | |
-title: Getting Started | |
-previous: What is Rubinius? | |
+title: はじめに |
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
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c | |
index 54d36c9..cab9d92 100644 | |
--- a/ext/stringio/stringio.c | |
+++ b/ext/stringio/stringio.c | |
@@ -1209,7 +1209,7 @@ strio_putc(VALUE self, VALUE ch) | |
/* | |
* call-seq: | |
- * strio.read([length [, buffer]]) -> string, buffer, or nil | |
+ * strio.read([length [, outbuf]]) -> string, outbuf, or nil |
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 | |
#============================== | |
# 指定した自分のリストに指定したユーザーを放り込みます. | |
# 多量のユーザーをリストに放り込みたいときに便利. | |
#============================== | |
# 本プログラムは OAuthSimple ライブラリを使用します. | |
# https://github.com/nobuoka/ruby-OAuthSimple | |
# で公開しているので, git clone するなりして使用してください. |
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
{ | |
"name": "Extension for test", | |
"version": "1.0", | |
"manifest_version": 2, | |
"description": "for test of alert, confirm and prompt functions", | |
"browser_action": { | |
"default_popup": "popup.html" | |
}, | |
"permissions": [ | |
] |
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
" filetype が typescript の場合にのみ動作する neocomplcache プラグイン | |
" jsx_complete.vim を参考にしてます. | |
" https://github.com/osyo-manga/neocomplcache-jsx/blob/master/autoload/neocomplcache/sources/jsx_complete.vim | |
let s:source = { | |
\ 'name': 'typescript_complete', | |
\ 'kind': 'ftplugin', | |
\ 'filetypes': { 'typescript': 1 }, | |
\ } |
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
var Cc = Components.classes; | |
var Ci = Components.interfaces; | |
var PromptService = Cc["@mozilla.org/embedcomp/prompt-service;1"] | |
.getService(Ci.nsIPromptService); | |
// インストール時に呼び出される | |
function install(aData, aReason) { | |
PromptService.alert(null, "Bootstrapped Extension Sample", "Install"); | |
} |
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
Text-MeCab-0.20014$ make | |
cc -c "-I." "-I/usr/include" "-I." -fPIC -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=97 -I src -Wall -W -Wno-comment -O2 -DVERSION=\"0.20014\" -DXS_VERSION=\"0.20014\" -o xs/MeCab.o -fpic "-I/home/nobuoka/perl5/perlbrew/perls/perl-5.8.8/lib/5.8.8/x86_64-linux/CORE" -DUSE_PPPORT -DTEXT_MECAB_ENCODING='"euc-jp"' -DTEXT_MECAB_CONFIG='"/usr/bin/mecab-config"' xs/MeCab.c | |
xs/MeCab.xs:64: warning: excess elements in struct initializer | |
xs/MeCab.xs:64: warning: (near initialization for ‘TextMeCab_vtbl’) | |
xs/MeCab.xs: In function ‘XS_Text__MeCab_version’: | |
xs/MeCab.xs:116: warning: assignment discards qualifiers from pointer target type | |
xs/MeCab.c: In function ‘boot_Text__MeCab’: | |
xs/MeCab.c:1140: error: ‘MECAB_ONE_BEST’ undeclared (first use in this function) | |
xs/MeCab.c:1140: error: (Each undeclared identifier is reported only once | |
xs/MeCab.c:1140: error: for each functio |
OlderNewer