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
// REST API | |
// http://distance.search.olp.yahooapis.jp/OpenLocalPlatform/V1/distance?coordinates=139.73091159286,35.665662327613%20135.49513388889,34.701974166667&appid=<<YOUR APPID>> | |
var YOLP_API = {}; | |
var YOLP_API.appid=<<YOUR APPID>> | |
//2地点間距離API | |
YOLP_API.distanceAPIURL = "http://distance.search.olp.yahooapis.jp/OpenLocalPlatform/V1/distance"; |
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
// REST API | |
//「電話帳」カセットを指定して、「六本木周辺2km以内のラーメン」を検索する場合の例 | |
// http://search.olp.yahooapis.jp/OpenLocalPlatform/V1/localSearch?cid=d8a23e9e64a4c817227ab09858bc1330&lat=35.662654694078626&lon=139.73135330250383&dist=2&query=%E3%83%A9%E3%83%BC%E3%83%A1%E3%83%B3&appid=<<YOUR_APP_ID>> | |
// ============アプリ共通変数の定義============ | |
var YOLP_API = {}; | |
//アプリケーションID | |
YOLP_API.appid = <<YOUR APPID>>; |
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
// REST API | |
// 全データを取得 | |
// http://search.olp.yahooapis.jp/OpenLocalPlatform/V1/localSearch?cid=9464569e017af008a535e14f6c88c862&detail=full&appid=<<YOUR_APPID>> | |
// 京都大学の周辺(10km)で哲学に関する地点を自分の作成したカセットから検索 | |
// http://search.olp.yahooapis.jp/OpenLocalPlatform/V1/localSearch?cid=9464569e017af008a535e14f6c88c862&lat=35.026244&lon=135.780822&dist=10&detail=full&query=%e5%93%b2%e5%ad%a6&appid=<<YOUR_APPID>> | |
// ============アプリ共通変数の定義============ | |
var YOLP_API = {}; | |
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
This XML file does not appear to have any style information associated with it. The document tree is shown below. | |
<YDF xmlns="http://olp.yahooapis.jp/ydf/1.0" totalResultsReturned="2" totalResultsAvailable="2" firstResultPosition="1" slick-uniqueid="3"> | |
<ResultInfo> | |
<Count>2</Count> | |
<Total>2</Total> | |
<Start>1</Start> | |
<Status>200</Status> | |
<Description/> | |
<Copyright/> | |
<Latency>0.019</Latency> |
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
<?php | |
// 言語グリッドPHPライブラリをインポート | |
require_once dirname(__FILE__).'/langrid-php-library/MultiLanguageStudio.php'; | |
// 使用するサービスのWSDLのURLを指定 | |
$url = 'http://langrid.org/service_manager/wsdl/kyoto1.langrid:KyotoUJServer'; | |
try{ | |
// 該当するサービスタイプ(今回はTranslation)を指定して,クライアントを作成 | |
$client = ClientFactory::createTranslationClient($url); |
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
<?php | |
// 言語グリッドPHPライブラリをインポート | |
require_once dirname(__FILE__).'/langrid-php-library/MultiLanguageStudio.php'; | |
$url = 'http://langrid.org/service_manager/wsdl/Lsd'; | |
try { | |
// サービスクライアントの作成 | |
$client = ClientFactory::createBilingualDictionaryClient($url); |
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
<?php | |
// 言語グリッドPHPライブラリをインポート | |
require_once dirname(__FILE__).'/langrid-php-library/MultiLanguageStudio.php'; | |
$url = 'http://langrid.org/service_manager/wsdl/VoiceText'; | |
try { | |
// サービスクライアントの作成 | |
$client = ClientFactory::createTextToSpeechClient($url); |
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
<?php | |
// 言語グリッドPHPライブラリをインポート | |
require_once dirname(__FILE__).'/langrid-php-library/MultiLanguageStudio.php'; | |
$url = 'http://langrid.org/service_manager/wsdl/TranslationCombinedWithBilingualDictionary'; | |
try{ | |
// サービスクライアントの作成 | |
$client = ClientFactory::createTranslationWithTemporalDictionaryClient($url); |
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
package misc; | |
class Foo { | |
int val; | |
Foo(int i) { | |
this.val = i; | |
} | |
int getVal() { |
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
;; ある変数に束縛されたシンボルの値を書きかえる. | |
(define a "hoge") | |
(define b 'a) | |
(define (set-in-func1! x) | |
(set! x "pyo")) | |
(set-in-func1! b) | |
b ;; a |
OlderNewer