Skip to content

Instantly share code, notes, and snippets.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@gremito
gremito / vue-deploy.sh
Created July 4, 2020 18:39
ビルドしたvueソースをfirebase hostingへデプロイするスクリプト
#!/bin/sh
cd "${APP_NAME}"-vue
npm run build
cd ../
TGZ_NAME=./deploy-`date +"%Y-%m-%d-%H:%M"`.tgz
tar -czvf "${TGZ_NAME}" "${APP_NAME}"-firebase/public
using UnityEngine;
public class InstantiateManager : MonoBehaviour
{
[SerializeField]
private GameObject _cube;
private int _frameCount;
@gremito
gremito / LookAt.cs
Last active March 12, 2020 17:06
カメラ方向にキャラクタが向くスクリプト
using UnityEngine;
// Camera to AddComponent
public class LookAt : MonoBehaviour
{
[SerializeField]
GameObject unitychan;
void Start()
@gremito
gremito / HighAndLow.cs
Last active February 24, 2020 03:40
HighAndLow.cs
using System;
using System.Text;
using System.Collections.Generic;
namespace ConsoleProject
{
// memo: ハイアンドローのロジックを作る
class MainClass
{
@gremito
gremito / Dealer.cs
Created February 9, 2020 03:18
Dealer.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dealer : MonoBehaviour
{
/// <summary>
/// カードの種類とカードのGameObjectを一緒に管理
/// </summary>
Dictionary<int, GameObject> cards;
@gremito
gremito / error_log_for_appium_espresso.txt
Created February 4, 2020 02:12
error_log_for_appium_espresso.txt
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/gremito/xamarin_app/Droid/bin/Release/com.xxx.yyy.xamarin_app.apk","appActivity":"md5565e74a9229abc13ea527ec328fe46e8.MainActivity","appPackage":"com.xxx.yyy.xamarin_app","automationName":"Espresso","avd":"Pixel_3a_API_29","deviceName":"Android Emulator","noSign":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/gremito/xamarin_app/Droid/bin/Release/com.xxx.yyy.xamarin_app.apk","appActivity":"md5565e74a9229abc13ea527ec328fe46e8.MainActivity","appPackage":"com.xxx.yyy.xamarin_app","automationName":"Espresso","avd":"Pixel_3a_API_29","deviceName":"Android Emulator","noSign":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":t
@gremito
gremito / UnitychanVoice.cs
Created January 15, 2020 14:56
複数ボイス再生スクリプト
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnitychanVoice : MonoBehaviour
{
private AudioSource audioSource;
[SerializeField]
private List<AudioClip> audioClipList = new List<AudioClip>();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoinGame : MonoBehaviour
{
[SerializeField]
private GameObject coin;
private const int MAX_COIN = 10;
@gremito
gremito / Human.cs
Last active December 20, 2019 13:03
Human.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseEnemy : MonoBehaviour
{
// 必要なパラメータ
// -> 体力ポイント : 1(初期値)
// -> 攻撃ポイント : 1(初期値)
// -> エフェクト