Skip to content

Instantly share code, notes, and snippets.

@lopnor
Created May 1, 2010 08:23
Show Gist options
  • Select an option

  • Save lopnor/386152 to your computer and use it in GitHub Desktop.

Select an option

Save lopnor/386152 to your computer and use it in GitHub Desktop.
google docsとPerlを連携させる
google docs to work together and Perl
谷歌docs的共同努力和Perl
Nobuo Danjou from Shibuya.pm
-
私は観光に来ました。
I came to tourism.
我來這裡觀光。
台湾に来れてとてもうれしいです!
I am very happy to come to Taiwan!
我很高興來到台灣!
とても暖かい!
Very warm!
很溫暖!
もうすでに私以外の誰かがこの事に言及しているはずだ:)
I should have mentioned this to anyone but me already:)
我應該已經有人提到這個:)
-
渋谷の近所に住んでいます。
I live in the neighborhood of Shibuya.
我住在附近的澀谷。
私はPerlを少し書きます。
I write a little Perl.
寫一個小的Perl。
なので、今日Perlについて発表します。
So, today announced the Perl.
因此,今天的宣布。
-
ごめんなさい!
I'm sorry!
對不起!
-
私は他のShibuya.pmのメンバーのようにPerlの \
内部の話はしません。
I like the other members of the Perl Shibuya.pm \
inside story does not.
Shibuya.pm內幕是不喜歡的Perl。
私にはできません。
I can not.
可以。
私はただの観光客です!
I'm just a tourist!
這只是一個旅遊!
-
Anyway,
無論如何,
-
Google Docsをプログラム言語から使いたい
Programming language to use Google Docs
編程語言來使用谷歌文件
いろんな言語で実装されている。
Has been implemented in various languages.
爪哇的Objective - C,PHP,Python語言,紅寶石,...
Java, Objective-C, PHP, Python, Ruby, ...
Perlでも実装した。
Perl implementation of it.
但Perl的。
-
私は以下のものを作った。
I made the following.
作出如下。
"Net::Google::DocumentsList"
"Net::Google::Spreadsheets"
"Net::Google::DataAPI"
-
中身
Content
內容
-
"XML::Atom"をwrapしている
"XML:: Atom" has a wrap
的XML::原子有一包
high level interfaceを提供している
that provides a high level interface
提供一個高層次的接口
後で説明します
Described later
後面討論
-
使い道
Use
使用
-
設定を保存する
To save your settings
為了節省您的設置
-
どんな処理をして欲しいか書いておいてもらう
I have wanted to keep writing what operations
我一直想繼續寫什麼行動
config.yamlのような使い方
Using such config.yaml
使用這種 config.yaml
自分で使うだけなら面倒なのでconfig.yamlか何かを使おう:)
If you just too lazy to use one's own use config.yaml \
or something:)
如果你只是懶得用自己使用config.yaml或東西:)
-
処理結果を書き出す
Export processing results
出口加工結果
-
アクセスログを集計して結果を書き出す
Export results aggregated access logs
結果累計出口訪問日誌
-> グラフを書くのはGoogleの仕事
Google's job to write the graph
谷歌的工作就是寫圖
-
web以外のインターフェイスでデータを追加する
web interface to add data to a non-
網絡接口將數據添加到一個非
-
たとえば、家計簿にTerminalから入力する
For example, input from the family budget Terminal
例如,輸入終端從家庭預算
普段はweb経由で入力する
I usually enter via the web
我通常通過網絡進入
-
書類のコンバータとして使う (Net::Google::DocumentsList)
Documents used as a converter \
(Net:: Google:: DocumentsList)
文件作為一個轉換器(網::谷歌::DocumentsList)
-
翻訳機能
Translating function
翻譯功能
このプレゼンも翻訳した
This presentation has translated
此演示文稿已翻譯
-
ファイル形式の変換
File format conversion
文件格式轉換
OCR (使った事がないので分からない)
OCR (I know there is no use.)
光學字符識別(我知道是沒有用的。)
-
利点
Advantage
優點
-
ユーザーインターフェイスを任せる
Let the user interface
讓用戶界面
-
ブラウザから閲覧、編集可能
Viewed from a browser, you can edit
從瀏覽器看,你可以編輯
プログラマーではないユーザーにも使い慣れた \
インターフェイス
The programmer is not familiar interface to users
程序員不熟悉的用戶界面
-
僕はデザインができないけど、 \
Googleを使えば少なくともバカにされない:)
But I can not design, Google is not stupid \
at least do it:)
不過,我可以不設計,谷歌是不是愚蠢的, \
至少做到這一點:)
データの共有はGoogle側で行う
Data sharing is performed only by Google
數據共享是只能由谷歌
-
弱点
Weakness
弱點
-
遅い
Slow
緩慢
-
Google Docsのデータの反映に時間がかかる
Google Docs data take time to reflect
谷歌文檔數據需要時間來反映
interactiveな処理でなければそんなに問題にならない
interactive process should be such a problem
互動的過程應該是這樣一個問題
深夜にログを処理するとか
Log in or late at night to handle
登錄或深夜,以處理
-
Googleにつながらないと使えない
Google and used to lead
谷歌和使用領導
-
飛行機の中では無理 :(
Impossible in the plane: (
不可能在飛機上:(
Offline modeが欲しい!
Offline mode you want!
脫機模式下,您想要的!
-
以上です。
That's all.
這樣就好了。
-
ありがとう!
Thank you!
謝謝!
-
> cpanm Net::Google::Spreadsheets
> cpanm Net::Google::DocumentsList
> cpanm Net::Google::DataAPI
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment