Skip to content

Instantly share code, notes, and snippets.

public function 関数名($keyword)
{
// ・・・略・・・
$searchResponse = $youtube->search->listSearch('id,snippet',
array(
'q' => $keyword, // 検索キーワード
'maxResults' => '6', // 拾いたい動画数
'order' => 'date')); // 新しい順
// ・・・略・・・
}
google.com, pub-2394875098786345, DIRECT, f08c47fec0942fa0
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
<iframe width="500" height="500" src="./vrview/contents/exhibition.html?image=room1.jpg?is_stereo=true"></iframe>
<iframe src="//storage.googleapis.com/vrview/index.html?image=room1.jpg"></iframe>
using UnityEngine;
using System.Collections;
public class RotateSkyBox : MonoBehaviour {
public float _anglePerFrame = 0.1f; // 1フレームに何度回すか[unit : deg]
float _rot = 0.0f;
// Use this for initialization
void Start() {
}
#include "CppProject1.h"
#include "YanaiFileRead.h"
FString UYanaiFileRead::GetGameDir()
{
return FPaths::GameDir();
}
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <vector>
#include <map>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
//------------------------------------------------------------------------------
// 現在視点から全方位パノラマ画像を作成する
Texture2D CreateEquirectangular(int width)
{
Texture2D imageCube = CreateCubeMap(width);
_finalTex = imageCube;
{
Texture2D equiImage = new Texture2D(imageCube.width, imageCube.width / 2);
float u, v; // Normalised texture coordinates, from 0 to 1, starting at lower left corner
bool OpenFile_Windows()
{
_path = "";
OpenFileDialog open_file_dialog = new OpenFileDialog();
open_file_dialog.Filter = "JPEG形式|*.jpg";
open_file_dialog.CheckFileExists = false;
if (open_file_dialog.ShowDialog() == DialogResult.OK)
{
_path = open_file_dialog.FileName;
_file = System.IO.Path.GetFileName(_path);