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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
public class SkyColorChangeAsset : PlayableAsset | |
{ | |
[SerializeField] public Color startColor; | |
[SerializeField] public Color endColor; | |
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
1 | |
00:00:00,000 --> 00:00:00,100 | |
var script = document.createElement("script"); | |
script.setAttribute("src", "https://code.jquery.com/jquery-3.2.1.min.js"); | |
document.getElementsByTagName("head")[0].appendChild(script); | |
2 | |
00:00:00,200 --> 00:00:00,300 | |
$("body").append('<style>*{padding:0;margin:0;}#fumen{background: rgba(0,0,0,0.4);position: fixed;bottom: 0;right: 0;height: 100%;width: 100%;}.humen{width: 100%;height: 20px;z-index: 9999;background: #fff;color: #000;position: absolute;}</style><div id="fumen"></div>'); | |
$("body").append('<div style="position: fixed;top: 0;left: 0;width: 100%;height: 50px; text-align: center;background: #000;color: #fff;" id="score">0</div><div id="bar" style="position: fixed;bottom: 200px;height: 10px;background: #aaa;width: 100%;left: 0;"></div>'); |
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
1 | |
00:00:00,000 --> 00:00:00,100 | |
var script = document.createElement("script"); | |
script.setAttribute("src", "https://code.jquery.com/jquery-3.2.1.min.js"); | |
document.getElementsByTagName("head")[0].appendChild(script); | |
2 | |
00:00:00,200 --> 00:00:00,300 | |
$("body").append('<style>*{padding:0;margin:0;}#fumen{background: rgba(0,0,0,0.4);position: fixed;bottom: 0;right: 0;height: 100%;width: 100%;}.humen{width: 100%;height: 20px;z-index: 9999;background: #fff;color: #000;position: absolute;}</style><div id="fumen"></div>'); | |
$("body").append('<div style="position: fixed;top: 0;left: 0;width: 100%;height: 50px; text-align: center;background: #000;color: #fff;" id="score">0</div><div id="bar" style="position: fixed;bottom: 200px;height: 10px;background: #aaa;width: 100%;left: 0;"></div>'); |
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
import requests | |
import base64 | |
file = open('./20_F1.wav', 'rt').read() | |
enc_file = base64.b64encode( file ) | |
headers = { | |
'Content-Type': 'application/json', | |
'Authorization': 'Bearer ya29.Ci9EA9Dzi1sA0CKpcAS-I_14NvBgOMCE4qswqp584BNbQD0vmksQffsYcnHKwxXwUg', | |
} | |
data = '{"config": {"encoding": "LINEAR16","sampleRate": 16000,"languageCode": "en-US",},"audio": {"content":"%s"}}' % enc_file |
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
import requests | |
import base64 | |
file = open('./20_F1.wav', 'rt').read() | |
enc_file = base64.b64encode( file ) | |
headers = { | |
'Content-Type': 'application/json', | |
'Authorization': 'Bearer ya29.Ci9EA9Dzi1sA0CKpcAS-I_14NvBgOMCE4qswqp584BNbQD0vmksQffsYcnHKwxXwUg', | |
} | |
data = '{"config": {"encoding": "LINEAR16","sampleRate": 16000,"languageCode": "en-US",},"audio": {"content":"%s"}}' % enc_file |
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
import requests | |
import base64 | |
file = open('./20_F1.wav', 'rt').read() | |
enc_file = base64.b64encode( file ) | |
headers = { | |
'Content-Type': 'application/json', | |
'Authorization': 'Bearer ya29.Ci9EA9Dzi1sA0CKpcAS-I_14NvBgOMCE4qswqp584BNbQD0vmksQffsYcnHKwxXwUg', | |
} | |
data = '{"config": {"encoding": "LINEAR16","sampleRate": 16000,"languageCode": "en-US",},"audio": {"content":"%s"}}' % enc_file |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="libs/qimessaging/1.0/qimessaging.js"></script> | |
<script src="libs/qimessaging/1.0/jquery.min.js"></script> | |
<script src="js/script.js"></script> | |
<title>Document</title> | |
</head> | |
<body> |
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 session, socket; | |
var pepperAddress = "pepper.local" | |
//追加 | |
var alsystem; | |
$(function(){ | |
session | |
session = new QiSession(pepperAddress); | |
socket = session.socket(); |
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 session, socket; | |
var pepperAddress = "pepper.local" | |
$(function(){ | |
session | |
session = new QiSession(pepperAddress); | |
socket = session.socket(); | |
socket.on('connect', function() { | |
console.info('接続しました'); | |
}).on('error', function() { | |
console.error('接続できません'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="libs/qimessaging/1.0/qimessaging.js"></script> | |
<script src="libs/qimessaging/1.0/jquery.min.js"></script> | |
<script src="js/script.js"></script> | |
<title>Document</title> | |
</head> | |
<body> |
NewerOlder