Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from paramiko import SSHClient, AutoAddPolicy
HOST = 'xx.xx.xx.xx'
PORT = 22
USER = 'user_name'
PASSWORD = 'user_password'
PRIVATE_KEY = '/Users/user_name/.ssh/id_rsa'
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class UnitychanSpriteAction : MonoBehaviour
{
static int hashSpeed = Animator.StringToHash ("Speed");
static int hashFallSpeed = Animator.StringToHash ("FallSpeed");
static int hashGroundDistance = Animator.StringToHash ("GroundDistance");
static int hashIsCrouch = Animator.StringToHash ("IsCrouch");
@gremito
gremito / JankenGame.cs
Last active February 6, 2020 09:01
即席で作ったじゃんけんゲーム
using System;
namespace ConsoleApp
{
class JankenGame
{
static void Main(string[] args)
{
// じゃんけんゲーム!
@gremito
gremito / BuyDrink.cs
Last active July 19, 2020 08:44
自販機システム
using System;
using System.Collections.Generic;
namespace ObjectOrientationLearning
{
/// <summary>
/// 自販機で飲み物を買う動作を行うプログラム
/// </summary>
class Program
{
// 自販機のインスタンス管理
@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(初期値)
// -> エフェクト
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 / 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>();
@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 / 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 / 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
{