Skip to content

Instantly share code, notes, and snippets.

CSV::Writer#<<メソッドに関する質問です
3.0.1以前と3.0.2以降で CSV::Writer#<<メソッド内部の挙動に違いがあるように見えるのですが、これは意図的なものでしょうか?
### 相違点
#### 3.0.1
1行ずつencodeしてからStringIO#<<で文字列をappendしている。
#### 3.0.2
encodeせずにappendして、レシーバの文字コードに変換している。
# apache-arrow: enable Gandiva
Thanks for a great tool!
This PR turns -DARROW_GANDIVA flag on.
We tried to enable gandiva with this PR(https://github.com/Homebrew/homebrew-core/pull/58581), but it failed, so let's fix it and enable it.
The problem is the part that declares llvm as a build dependency.
When we compile with llvm, we are linking against the libc++ that comes with llvm.
So thereby llvm is a runtime dependency, actually.
@h-shima
h-shima / programming_haskell_answers.md
Last active January 13, 2021 03:56
Programming Haskell練習問題

1.7 練習問題

  1. double (double 2)の結果を算出する別の計算方法を考える
  double (double 2)
= double (2 + 2)
= (2 + 2) + (2 + 2)
= 4 + (2 + 2)
= 4 + 4
@h-shima
h-shima / gist:73d77c9c76a54bb7e55a6dc8453a12f8
Last active October 27, 2019 10:31 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>カレーのレシピ</title>
</head>
<body>
<article>
<h1>カレーのレシピ</h1>
@h-shima
h-shima / file0.rb
Last active October 1, 2018 07:39
Railsのparamsはキーの型に関係なく値を取り出すことができる ref: https://qiita.com/h-shima/items/acf33cad8fd215ef9b96
#rubyでは...
h = { :last_name => "佐藤", "first_name" => "太郎" }
#キーに指定した要素の型で値を取ってくることができる
h[:last_name] #=> "佐藤"
h["first_name"] #=> "太郎"
#指定した要素とは違う型で値を取ってくることはできない
h["last_name"] #=> nil
@h-shima
h-shima / concern.rb
Last active July 27, 2019 11:26
ActiveSupport::Concernの使い方としくみ ref: https://qiita.com/h-shima/items/d772b4cbe7368ddb8255
module ActiveSupport
module Concern
class MultipleIncludedBlocks < StandardError #:nodoc:
def initialize
super "Cannot define multiple 'included' blocks for a Concern"
end
end
def self.extended(base) #:nodoc: