Skip to content

Instantly share code, notes, and snippets.

View YutaWatanabe's full-sized avatar

Yuta Watanabe YutaWatanabe

  • Civitas, Inc.
  • Tokyo, Japan
View GitHub Profile
@YutaWatanabe
YutaWatanabe / array_sale.php
Created November 24, 2011 17:55
Array exemplo da operação SALE
// Array exemplo da operação SALE
$sale = array(
"verification" => array(
"merchantId" => "100",
"merchantKey" => "NotAValidKey21g8u6gh6szw1",
),
"order" => array(
"sale" => array(
"referenceNum" => "123456789",
"ipAddress" => "123.123.123.123",
@YutaWatanabe
YutaWatanabe / skype-uris-basic.html
Last active December 21, 2015 01:28
Skype URIs basic
<a href="skype:echo123?call">Call the Skype Echo / Sound Test Service</a>
<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
<div id="genSkypeCall">
/* ここにSkype URI を埋め込む */
</div>
<script type="text/javascript">
Skype.ui({
name: "call",
element: "genSkypeCall", // ここで div タグの id を指定
participants: ["echo123"], // 通話に参加するユーザの指定
listparticipants: "true"
});
</script>
<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
<div id="genSkypeCall">
<script type="text/javascript">
Skype.ui({
name: "call",
element: "genSkypeCall", // ここで div タグの id を指定
participants: ["echo123"], // 通話に参加するユーザの指定
listparticipants: "true"
});
</script>
<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
<div id="skypeUriParams">
<script type="text/javascript">
Skype.ui({
name: "dropdown",
element: "skypeUriParams",
participants: ["echo123"],
listparticipants: "true",
video: "true",
topic: "Test Call",
onDeviceReady: function() {
app.receivedEvent('deviceready');
navigator.notification.alert("The device is ready!");
}
@YutaWatanabe
YutaWatanabe / html5audio.js
Last active January 1, 2016 12:29
HTML5 Audio 再生
var audio = new Audio('hoge.wav');
audio.play();
@YutaWatanabe
YutaWatanabe / html5audio-touch.js
Last active January 1, 2016 12:29
HTML5 Audio をタッチイベントで再生する
hoge.addEventListener('touchstart', function(){
var audio = new Audio ('foo.wav');
audio.play();
});